Actions
Bug #3436
closedRudder always restarts cron on Ubuntu
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
Rudder always restarts cron on Ubuntu:
-> Making a one-time restart promise for /usr/sbin/cron -> Executing '/etc/init.d/cron restart' ...(timeout=-678,owner=-1,group=-1) Q: "...nit.d/cron rest": Rather than invoking init scripts through /etc/init.d, use the service(8) Q: "...nit.d/cron rest": utility, e.g. service cron restart Q: "...nit.d/cron rest": Since the script you are attempting to invoke has been converted to an Q: "...nit.d/cron rest": Upstart job, you may also use the stop(8) and then start(8) utilities, Q: "...nit.d/cron rest": e.g. stop cron ; start cron. The restart(8) utility is also available. Q: "...nit.d/cron rest": cron stop/waiting Q: "...nit.d/cron rest": cron start/running, process 29958 I: Last 7 quoted lines were generated by promiser "/etc/init.d/cron restart" -> Completed execution of /etc/init.d/cron restart
This happens because the process name in promises.cf is not correct on an Ubuntu system:
# ps wwwuax | grep cron | grep -v grep root 31539 0.0 0.0 19112 992 ? Ss 11:28 0:00 cron
The following patch fixes this:
--- /var/rudder/cfengine-community/inputs/promises.cf.orig 2013-04-12 11:30:00.522173676 +0000 +++ /var/rudder/cfengine-community/inputs/promises.cf 2013-04-12 11:30:21.162938118 +0000 @@ -398,7 +398,7 @@ (debian|SuSE):: - "cron_bin" string => "/usr/sbin/cron"; + "cron_bin" string => "cron"; "cron_restartcmd" string => "/etc/init.d/cron restart"; redhat::
Actions