logrotate is a subordinate charm that ensure that all logrotate.d configurations within /etc/logrotate.d/ folder are modified accordingly to a retention period defined in the charm
Other
0
stars
2
forks
source link
random setting for update-cron-daily-schedule config does not work #33
The random setting for update-cron-daily-schedule does not work because the cron package running on Ubuntu (Vixie cron/ISC cron)1 does not support this feature. The Ubuntu man page for cron 2 does not have anything on randomization of execution time either.
After checking the MP where the feature was introduced3, it looks like this man page 4 was consulted to implement the random feature. But this feature is not implemented yet in the cron package for Ubuntu. So, some custom code needs to be written that would take START_HOUR,START_MIN,END_HOUR,END_MIN and output a random time in that range.
Therefore the implementation of the random feature needs to be fixed and this bug 5 has not been resolved yet.
The
random
setting forupdate-cron-daily-schedule
does not work because the cron package running on Ubuntu (Vixie cron/ISC cron)1 does not support this feature. The Ubuntu man page for cron 2 does not have anything on randomization of execution time either.After checking the MP where the feature was introduced3, it looks like this man page 4 was consulted to implement the random feature. But this feature is not implemented yet in the cron package for Ubuntu. So, some custom code needs to be written that would take START_HOUR,START_MIN,END_HOUR,END_MIN and output a random time in that range.
Therefore the implementation of the random feature needs to be fixed and this bug 5 has not been resolved yet.
Imported from Launchpad using lp2gh.
date created: 2023-05-17T17:02:40Z
owner: dashmage
assignee: dashmage
the launchpad url