Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2016 12:29:49 +0200
From:      Bertram Scharpf <lists@bertram-scharpf.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: Stupid question regarding reboot and poweroff
Message-ID:  <20160918102949.GA90101@becker.bs.l>
In-Reply-To: <20160918090323.GA69189@e733>
References:  <20160918090323.GA69189@e733>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160918102949.GA90101>