Hi Laurent !

> Indeed, I'm used to the POSIX specification and should read the
>Linux man pages more often... thanks Harald.

Nobody can know everything!

> And if the killing process does not kill itself, then there is
> no reason at all for process scanning, and the killall5
> insanity is totally unnecessary.

Remember: killall5 is SYSV not Linux, so process scanning is
historical and no more required on Linux. 

> Only a "killall-and-exec" program is needed, which performs
>kill(-1, SIGKILL) and execs into the remainder of the command
>line. This command line can be the last part of a shutdown
>script - it can be a script itself, unmounting the filesystems
>and powering off the machine.

Sounds much like the way I'm doing shutdown ... :)

IMO we shall make things more easy and not add more cases to the
init shutdown process.


To grab Laurent's idea: What about a separate shutdown applet in
Busybox:

kill(-1,TERM), sleep, kill(-1,KILL), sleep, umount, sync then
exec into the given remainder of command line? And remove all
special shutdown processing from init process?

Vor easy shutdown we can do: shutdown poweroff -f
... or: shutdown kexec whatever

... and, as Denys tend to have things compatible to upstream
utilities: Busybox is already different on it's init system. Why
not going one step further and making it simpler.

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

Reply via email to