I was trying to get rcK to run to shutdown gracefully and noticed that
the inittab should use SHUTDOWN for the action.  If I run /sbin/reboot
this causes a SIGINT, which doesn't cause the rcK to get run.  If I do
kill -15 1 then rcK gets run and I get a reboot.

Is this the intended action for /sbin/reboot or am I doing something
wrong here?  poweroff also doesn't do SIGTERM for init.

I'm using Busybox 1.19.4.  My relevant inittab lines are:

# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot

# Stuff to do before rebooting
::shutdown:/etc/init.d/rcK
::shutdown:/bin/umount -a -r
::shutdown:/sbin/swapoff -a

-- 
Michael J. Hammel <[email protected]>

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

Reply via email to