[BusyBox] Ordering on init shutdown.

Joel Krauska jkrauska at ayrnetworks.com
Wed Sep 11 10:08:03 UTC 2002


When busybox init gets killed (you reboot or halt....)
it does three main things in shutdown_system().

1. It sends all procs SIGTERM.
2. It sends all procs SIGKILL
3. It runs the shutdown actions given in /etc/inittab

I believe the ordering should actually be.

1. It runs the shutdown actions given in /etc/inittab
2. It sends all procs SIGTERM.
3. It sends all procs SIGKILL


I have some processes that are best killed off in a certain order,
and I've built the scripts to manage that, but because of init's
ordering I can't control this.

Are there reasons the current ordering is preferred?

If not, would you consider swapping these?

Thanks,

Joel Krauska







More information about the busybox mailing list