Package: acpid
Version: 1.0.4-5

Hello,

when acpid is not running, the logrotate-script causes error-mails to be
sent:

/etc/cron.daily/logrotate:
error: error running postrotate script for /var/log/acpid
run-parts: /etc/cron.daily/logrotate exited with return code 1

This is because `pkill -SIGUSR1 acpid' returns 1 if it cannot find a
matching process.
Of course, one could argue that it's okay to get some warning when acpid
is not running. However, in this particular case it doesn't harm at all
if acpid is not running: the logfile gets rotated, if there is no acpid,
there is no need for it to reopen any logs.

Using `pkill -SIGUSR1 sleep > /dev/null || true' could fix this easily.


Thanks for your work & regards
   Mario
-- 
There are 10 types of people in the world: Those who
understand binary, and those who don't...

Attachment: signature.asc
Description: Digital signature

Reply via email to