diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2010-12-30 18:06:31 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2010-12-30 18:06:31 +0000 |
commit | 6868734cbe9f08a48af5f89ab9c1bbce1f72ce1c (patch) | |
tree | 841e4912bb3223fec4f317ed614a2a385cbb5dec /sbin/shutdown/shutdown.8 | |
parent | 4a9ef3f833f49f7ade32cdc8050d5b06a01bef76 (diff) | |
download | src-6868734cbe9f08a48af5f89ab9c1bbce1f72ce1c.tar.gz src-6868734cbe9f08a48af5f89ab9c1bbce1f72ce1c.zip |
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
While I'm here put one line of usage into one line of C code so it is easier to
grep(1) and separate unrelated code with empty line.
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=216823
Diffstat (limited to 'sbin/shutdown/shutdown.8')
-rw-r--r-- | sbin/shutdown/shutdown.8 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sbin/shutdown/shutdown.8 b/sbin/shutdown/shutdown.8 index 1f7a1b06ecdd..032c4f3ca2d2 100644 --- a/sbin/shutdown/shutdown.8 +++ b/sbin/shutdown/shutdown.8 @@ -28,11 +28,12 @@ .\" @(#)shutdown.8 8.2 (Berkeley) 4/27/95 .\" $FreeBSD$ .\" -.Dd December 23, 2008 +.Dd December 30, 2010 .Dt SHUTDOWN 8 .Os .Sh NAME -.Nm shutdown +.Nm shutdown , +.Nm poweroff .Nd "close down the system at a given time" .Sh SYNOPSIS .Nm @@ -47,6 +48,7 @@ .Oc .Ar time .Op Ar warning-message ... +.Nm poweroff .Sh DESCRIPTION The .Nm @@ -173,6 +175,13 @@ When run without options, the utility will place the system into single user mode at the .Ar time specified. +.Pp +Calling utility as +.Nm poweroff +is equivalent of calling: +.Bd -literal -offset indent +shutdown -p now +.Ed .Sh FILES .Bl -tag -width /var/run/nologin -compact .It Pa /var/run/nologin |