Hi Jeremy !

>You mean signals? Or am I looking at the wrong code?

Not signal. A location/file in shared memory. Handled outside of
init. The usual way to pass information to such kind of
routines/scripts in Unix like systems.

The restart handler is just a script. The script is invoked (via
exec) after normal shutdown is done, then grabs the information
from a shared memory location what to do next. After that the
restart script can do whatever is required. Not only those four
shutdown actions. This way allows us to have an unlimited number
of shutdown types without adding further cases to init (or using
extra signals). That's the way it has bean done for so many years
on many different machines and Unix like systems.

Original sysvinit uses RUNLEVEL to pass such kind of information,
but this has been superseded by passing information through
a shared memory location.

IMO we have already more cases than required. A single trigger
and the possibility to pass on a value to the restart action
would be enough. Then we have more flexibility with less
cases.

--
Harald
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to