Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2016 11:19:41 +0100
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Aleksander Alekseev <afiskon@devzen.ru>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Stupid question regarding reboot and poweroff
Message-ID:  <1945dff3-ac29-f07d-0a66-85cec230f45e@qeng-ho.org>
In-Reply-To: <20160918090323.GA69189@e733>
References:  <20160918090323.GA69189@e733>

next in thread | previous in thread | raw e-mail | index | archive | help
On 18/09/2016 10:03, Aleksander Alekseev wrote:
> Hello.
> 
> Is there any difference between executing `poweroff` and `shutdown -p
> now` or executing `reboot` and `shutdown -r now` ?
> 

man shutdown says

     Calling “poweroff” is equivalent to running:

           shutdown -p now

and they're the same executable hard linked.

reboot is the same executable as halt. They don't warn logged on users
in the same way as shutdown does. man  reboot says

     Normally, the shutdown(8) utility is used when the system needs to be
     halted or restarted, giving users advance warning of their
impending doom
     and cleanly terminating specific programs.



-- 
Schrödinger's cat had 18 half lives.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1945dff3-ac29-f07d-0a66-85cec230f45e>