/sbin/reboot
Olivier Smedts
olivier at gid0.org
Fri Dec 10 18:58:32 UTC 2010
2010/12/10 Garrett Wollman <wollman at hergotha.csail.mit.edu>:
> 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.
Thanks for clarifying this for Adam Vande More and all the persons he
may have confused. Don's use reboot(8), even on a single user system
(I'm not speaking of single user mode). The reboot command does not
work like on most GNU/Linux systems !
An other thread on the same subject (quoting des@) ::
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=419569+0+archive/2009/freebsd-current/20091004.freebsd-current
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=0+0+archive/2010/freebsd-current/20100110.freebsd-current
Something related :
https://bugs.kde.org/show_bug.cgi?id=250989
>>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.
Another no...
> Not even close.
>
> -GAWollman
>
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
>
--
Olivier Smedts _
ASCII ribbon campaign ( )
e-mail: olivier at gid0.org - against HTML email & vCards X
www: http://www.gid0.org - against proprietary attachments / \
"Il y a seulement 10 sortes de gens dans le monde :
ceux qui comprennent le binaire,
et ceux qui ne le comprennent pas."
More information about the freebsd-stable
mailing list