[BusyBox] should init really run the shutdown actions before sending SIGKILL

Tim Riker Tim at Rikers.org
Tue Sep 24 00:10:04 UTC 2002


You should have shutdown actions for each of the deamons that are
running. They they would not be running byt he time reboot starts.

Barring doing the Right Thing, you could just all a:

cd /proc
kill -TERM [0-9]*
kill -KILL [0-9]*

at the start of the script.

The change is the Right thing though as it can handle clean shutdowns or
with a simple script you can get the old functionality. With the old, it
was impossible to do some shutdown steps.

Matthias Lang wrote:
> 
> Hi,
> 
> A change was made to init a couple of weeks ago. This change made it
> in to 0.60.4:
> 
>    Revision 1.169 Mon Sep 16 06:49:06 2002 UTC by andersen
>    Branch: MAIN
>    Changes since 1.168: +5 -3 lines
>    Diff to previous 1.168
> 
>    Let people run SHUTDOWN actions prior to killing everything
>     -Erik
> 
> Is this really right? Before, my /etc/init.d/reboot file remounted
> everything read-only, to avoid messing up the filesystems on reboot.
> 
> Now, the remount fails because there are still processes around
> holding open files on /var.
> 
> Or is there a better way to cleanup on reboot?
> 
> Matt
-- 
Tim Riker - http://rikers.org/ - TimR at Debian.org
Lineo CTO - Tim at Lineo.com - http://www.Lineo.com/
BZFlag maintainer - http://BZFlag.org/ - for fun!



More information about the busybox mailing list