On Saturday 08 November 2008 00:20, Vladimir Dronnikov wrote: > > If you want to use runsvdir as init, you run it as > > runsvdir [-P] -s SCRIPT /dir > > > Works fine. Though to reboot I have to use something like: > > --- > #!/bin/sh > umount -a > exec reboot -f > --- > > as -s parameter script. > > Looks like a point of no return either.
You probably better off to reboot -f echo "Kernel has been instructed to reboot" while true; do sleep 9999; done because otherwise, if script exits, runsvdir will loop back and restart services, and this is definitely what you dont want to happen! Yes, in theory, reboot -f never returns. In practice, I once discovered that Linux kernel ignores RB_HALT command (RB_AUTOBOOT and RB_POWERDOWN worked) _and_ returns_ for the reboot syscall. I wrote a bug report about it and mailed it to lkml, still using "post-halt" machine for this. :) This was years ago, I hope it is fixed now; yet, still feeling paranoid about "reboot -f does not return" :) -- vda _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
