FS#18039 - [dcron] /etc/logrotate.d/crond refers to wrong pid file
Attached to Project:
Arch Linux
Opened by Kay Abendroth (kay.abendroth) - Wednesday, 27 January 2010, 15:56 GMT
Last edited by Paul Mattal (paul) - Monday, 01 March 2010, 15:04 GMT
Opened by Kay Abendroth (kay.abendroth) - Wednesday, 27 January 2010, 15:56 GMT
Last edited by Paul Mattal (paul) - Monday, 01 March 2010, 15:04 GMT
|
Details
Description:
With the package dcron updated to version 4.4-1 a bug has been introduced in the file /etc/logrotate.d/crond. The call to the kill command refers to a file /var/run/cron.pid, but the appropriate pid file is /var/run/crond.pid instead. Additional info: * package version(s): dcron 4.4-1 * config and/or log files etc. The following line in /etc/logrotate.d/crond is wrong: kill -HUP `cat /var/run/cron.pid` and needs to be changed into: kill -HUP `cat /var/run/crond.pid` Steps to reproduce: 1. Install dcron 4.4-1. 2. `cat /etc/logrotate.d/crond`. 3. `ls -hall /var/run/cron.pid`. 4. `ls -hall /var/run/crond.pid` |
This task depends upon
Closed by Paul Mattal (paul)
Monday, 01 March 2010, 15:04 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 4.4-2 of dcron and syslog-ng 3.0.4-3.
Monday, 01 March 2010, 15:04 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 4.4-2 of dcron and syslog-ng 3.0.4-3.
cat: /var/run/cron.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
error: error running shared postrotate script for '/var/log/crond.log '