Date: Fri, 10 Dec 2010 19:31:33 +0100 From: Olivier Smedts <olivier@gid0.org> To: Garrett Wollman <wollman@hergotha.csail.mit.edu> Cc: amvandemore@gmail.com, stable@freebsd.org Subject: Re: /sbin/reboot Message-ID: <AANLkTimfoYnW__ViGnVCtJsZp71gT4HQo4JvXjn5A=UQ@mail.gmail.com> In-Reply-To: <201012100735.oBA7Z0S1005352@hergotha.csail.mit.edu> References: <AANLkTimEvQ7amDeFE9eG%2BO9G664jXAWb9hhSt0bU%2B3DR@mail.gmail.com> <20101210060335.BCDCC1CC12@ptavv.es.net> <AANLkTikgGSyRLnDS6Oihw2u3SYjeZRrQWdSa9Z4t7UAE@mail.gmail.com> <201012100735.oBA7Z0S1005352@hergotha.csail.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
2010/12/10 Garrett Wollman <wollman@hergotha.csail.mit.edu>: > 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. 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimfoYnW__ViGnVCtJsZp71gT4HQo4JvXjn5A=UQ>
