/sbin/reboot
Garrett Wollman
wollman at hergotha.csail.mit.edu
Fri Dec 10 07:35:02 UTC 2010
In article <AANLkTikgGSyRLnDS6Oihw2u3SYjeZRrQWdSa9Z4t7UAE at mail.gmail.com>,
amvandemore at 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
More information about the freebsd-stable
mailing list