Red Hat Bugzilla – Bug 2241
don't use killall in cron.log
Last modified: 2008-05-01 11:37:49 EDT
Please apply the below patch to cron.log.
reason: vixie-cron has a feature whereby it mails the
stdout and stderr from a cronjob to the user running the
cronjob. To do this it fork()s, and the child waits until
the cronjob has completed to determine if mail needs to be
sent. By using killall you end up killing the child in
addition to HUPing the parent.
So, for example, any errors generated while rotating the
logs will be completely lost, rather than mailed to root.
Instead of using killall, send the HUP to the cron parent
--- cron.log.orig Sat Apr 17 10:47:25 1999
+++ cron.log Sat Apr 17 10:48:23 1999
@@ -1,5 +1,5 @@
- /usr/bin/killall -HUP crond
+ /bin/kill -HUP `/bin/cat /var/run/crond.pid`
Ah, interesting. Your bug form corrupted the patch. Those
should be backticks, not forward ticks.
In any event, I've been using this patch for over a year...
I submitted it previously, I guess it got lost.
Added in vixie-cron-3.0.1-34. Thanks for the patch.