Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Dec 2010 22:20:42 -0800
From:      Rob Farmer <rfarmer@predatorlabs.net>
To:        Adam Vande More <amvandemore@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: /sbin/reboot
Message-ID:  <AANLkTi=xUTsR5%2Bj%2B9enxR=kegp4=gYmy=Mre0eoUGkUS@mail.gmail.com>
In-Reply-To: <AANLkTimEvQ7amDeFE9eG%2BO9G664jXAWb9hhSt0bU%2B3DR@mail.gmail.com>
References:  <AANLkTinD3UZU6o-gf5J1B7CXp7DR1%2BJQvzbi9VJYmM8P@mail.gmail.com> <20101210051058.353747BF861@drugs.dv.isc.org> <AANLkTimEvQ7amDeFE9eG%2BO9G664jXAWb9hhSt0bU%2B3DR@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 9, 2010 at 21:35, Adam Vande More <amvandemore@gmail.com> wrote=
:
> On Thu, Dec 9, 2010 at 11:10 PM, Mark Andrews <marka@isc.org> wrote:
>
>> Why would you want it to be? =A0 One really shouldn't be running /sbin/r=
eboot
>> directly as part of normal operations. =A0shutdown does a graceful reboo=
t if
>> and when operators need to perform =A0reboot.
>>
>
> AFAIK, the only functional difference between the two is shutdown(8)
> notifies other logged in users of the impending shutdown. =A0I've used
> reboot(8) for a long time with no ill effects so I'd be interested to hea=
r
> what you meant there. =A0Since an operator can use shutdown(8) to initiat=
e the
> same shutdown sequence reboot(8) uses, it wouldn't seems to be a security
> based decision.

Shutdown runs rc.shutdown (stops all rc.d scripts). Also, halt/reboot
have options like -n and -q which can disrupt things worse than an
unintended clean reboot.

--=20
Rob Farmer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=xUTsR5%2Bj%2B9enxR=kegp4=gYmy=Mre0eoUGkUS>