acpid killed by default logrotate script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpid (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Intrepid |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: acpid
I noticed, by way of bug 247195, that acpid has been routinely dying on my Intrepid system. This didn't happen under 8.04. I believe this is happening because its logrotate script sends SIGUSR1, whose default action is to terminate the process, which isn't handled by acpid.
mizar:[~] cat /etc/logrotate.
/var/log/acpid {
weekly
rotate 4
compress
missingok
postrotate
pkill -SIGUSR1 acpid > /dev/null
endscript
}
root 23633 0.0 0.0 2308 1172 ? Ss 09:25 0:00 /usr/sbin/acpid -c /etc/acpi/events -s /var/run/
mizar:[~] sudo pkill -SIGUSR1 acpid
[sudo] password for mdz:
mizar:[~] ps u 23633
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
zsh: exit 1 ps u 23633
mizar:[~] cd /tmp/acpid-1.0.6
mizar:[
zsh: exit 1 grep -ri SIGUSR1 .
This means that acpid will die each week when the logrotate script is run.
Further confirmation:
root 24503 0.0 0.0 2308 1176 ? Ss 09:33 0:00 /usr/sbin/acpid -c /etc/acpi/events -s /var/run/ acpid.socket /tmp/acpid- 1.0.6] sudo logrotate --force /etc/logrotate. d/acpid /tmp/acpid- 1.0.6] ps u 24503
mizar:[
mizar:[
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
zsh: exit 1 ps u 24503