In article <aanlktikggsyrlnds6oihw2u3syjezrrqwdsa9z4t7...@mail.gmail.com>, 
amvandem...@gmail.com writes:

>For the correct order, "shutdown -r" calls reboot which calls init which
>calls rc.shutdown.

No.  shutdown(8) sends a SIGINT to init(8), which runs rc.shutdown and
then calls reboot(2) as its last act.

reboot(8) freezes init(8), then sends a SIGTERM to anything left
running, then sends a SIGKILL to anything left running, then calls
reboot(2) as its last act.

>Doing a shutdown -r is the same as a reboot without the warning to logged in
>users and shutdown handles the logging instead of reboot.

Not even close.

-GAWollman

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to