/etc/acpi/acpi_handler.sh uses /sbin/init instead of /sbin/shutdown
I've only noticed this recently when troubleshooting shutdowns (or lack off - as I thought at the time) on an auto pc using Slackware. I couldn't find the shutdowns in the logs - so I assumed the special auto power supply wasn't shutting the computer down properly - just turning the power off and crashing it. Then I discovered that "/sbin/init 0", called from /etc/acpi/acpi_handler.sh doesn't leave any traces in the logs - unlike "/sbin/shutdown -h now" - or similar.
I was wondering why the default acpi_handler.sh script shipped with Slackware doesn't use /sbin/shutdown. It seems neater, it writes stuff to the logs, it takes care of /etc/rc.d/rc.local_shutdown and various other niceties.
Than again - maybe that's how things come from upstream - or maybe there is some other sensible reason for things to be the way they are now?
|