Stupid question regarding reboot and poweroff

Bertram Scharpf lists at bertram-scharpf.de
Sun Sep 18 10:29:59 UTC 2016


On Sunday, 18. Sep 2016, 12:03:23 +0300, Aleksander Alekseev wrote:
> Is there any difference between executing `poweroff` and `shutdown -p
> now` or executing `reboot` and `shutdown -r now` ?

`poweroff' is a hard link to `shutdown'. See
/usr/src/sbin/shutdown/Makefile, line 6.

`reboot' and `halt' are called by `shutdown`. See
/usr/src/sbin/shutdown/shutdown.c, line 382-402.

The difference is that with `shutdown' you can define an
effective point of time.

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de


More information about the freebsd-questions mailing list