Re: /sbin/reboot
In article <AANLkTikgGSyRLnDS6Oihw2u3SYjeZRrQWdSa9Z4t7UAE@mail.gmail.com>,
amvandemore@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-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 10 之 13 篇):