I notice in slackware current that some code was added to rc.6 and rc.K to stop the acpi daemon. Sounds great as I have had this in my rc.shutdown script for several years. However, I notice some differences that puzzle me.
First, rc.K uses the following:
# Terminate acpid before syslog:
if ps axc | grep -q bin/acpid ; then
killall -SIGQUIT acpid
rc.6 uses the following:
if [ -x /etc/rc.d/rc.acpid -a -r /var/run/acpid.pid ]; then # quit
I realize the two scripts have slightly different purposes, but why the difference? Why not call /etc/rc.d/rc.acpid stop
Second, I have no /var/run/acpid.pid file. I have a /var/run/acpid.socket. Therefore the code in rc.6 always will fail to execute on my box. I checked man acpid and found no reference to a PID file.
Third, rc.K uses killall -SIGQUIT acpid
while rc.acpid uses killall acpid
. Why the difference?
None of this is shattering or a deal breaker. I can modify the scripts if I choose. Yet perhaps somebody can explain the differences?