svn commit: r216823 - head/sbin/shutdown

Erik Trulsson ertr1013 at
Fri Dec 31 16:57:56 UTC 2010

On Fri, Dec 31, 2010 at 03:43:08PM +0100, Jilles Tjoelker wrote:
> On Thu, Dec 30, 2010 at 06:06:31PM +0000, Pawel Jakub Dawidek wrote:
> > Author: pjd
> > Date: Thu Dec 30 18:06:31 2010
> > New Revision: 216823
> > URL:
> > Log:
> >   For compatibility with Linux and Solaris add poweroff(8).
> >   It is implemented as a hard link to shutdown(8) and it is equivalent of:
> >   	# shutdown -p now
> If we go that way, then for consistency reboot(8) and halt(8) should
> also be equivalent to calling shutdown -r now and shutdown -h now
> respectively, unless conflicting options are given. Linux has a -f
> option for what's currently reboot's and halt's default action, and
> fastboot(8)/fasthalt(8) could also retain the current behaviour.
> I would be in favour of this change.

I would not be in favour of such a change.  Adding a new command that
did not previously exist in FreeBSD (e.g.  poweroff(8)) is one thing,
and is unlikely to break anything or confuse anybody.

Changing the meaning of a command that is already present in FreeBSD is
something else, which is far more likely to cause problems.  Such
changes should generally be avoided unless there is some really good
reason to do it, and I don't think such a reason exists in this case.

<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at

More information about the svn-src-all mailing list