2010/12/10 Garrett Wollman <woll...@hergotha.csail.mit.edu>:
> 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.

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-unsubscr...@freebsd.org"
>

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@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."
_______________________________________________
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