History log of /freebsd-current/sbin/shutdown/shutdown.8
Revision Date Author Comments
# 51e16cb8 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

sbin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# e0dfa1c4 06-Nov-2022 Gordon Bergling <gbe@FreeBSD.org>

shutdown.8: Add a note about needed priviledges to run the command

In order to use the shutdown command, the user must
have root privileges or be a member of the operator group.

PR: 266525
Reported by: Zsolt Udvari <uzsolt at uzsolt hu>
Reviewed by: pauamma
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D36688


# 814321a0 05-Jul-2020 Niclas Zeising <zeising@FreeBSD.org>

shutdown.8: Fix typo

Fix a typo in shutdown.8, use ',' instead of '.' when listing items.

MFC after: 1 week


# 73c6e0c3 16-Jan-2020 Warner Losh <imp@FreeBSD.org>

Small tweak to the default behavior of shutdown -c

'shutdown -c' is supposed to power cycle the system rather than doing a normal
reboot. However, when that fails, it halts the system. This is not quite right
since the intent isn't to halt the system but to restart. Make the default init
behavior be to restart the system. The halt(8) interface can be used if you'd
like to powercycle or halt.

MFC After: 1 week
Differential Revision: https://reviews.freebsd.org/D23129


# cb1101af 01-Jan-2018 Eitan Adler <eadler@FreeBSD.org>

shutdown: Assume absolute time is in the future

The original bug describes it best:

When an absolute time is specified to shutdown, the program's
behavior depends on whether that time has passed during the
current calendar day. POLA would suggest that for shutdown,
whose time argument is always supposed to be in the future,
absolute times specified without a specific date should refer
to the next occurrence of that time, rather than erroring out
if that time has already passed during the current day.

PR: 32411
Submitted by: wollman@khavrinen.lcs.mit.edu
Submitted on: 2001-11-30 20:30:01 UTC
Reviewed by: asmodai (at time of bug submission)


# e60baa72 25-Oct-2017 Warner Losh <imp@FreeBSD.org>

Add power cycle support (-c) to shutdown.

Sponsored by: Netflix


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# 6c968f71 02-Oct-2016 Sevan Janiyan <sevan@FreeBSD.org>

shutdown appeared as a standalone utility in 4.1BSD.
http://mail-index.netbsd.org/source-changes-d/2016/09/13/msg008686.html
http://mail-index.netbsd.org/source-changes-d/2016/09/14/msg008691.html
PR: 212552
Approved by: bcr (mentor)
Obtained from: NetBSD
MFC after: 4 days
Differential Revision: https://reviews.freebsd.org/D8105


# c7d73a4d 16-Dec-2014 Gleb Kurtsou <gleb@FreeBSD.org>

sbin/shutdown: Support time units as in 'shutdown -r +5sec'

Units supported: s, sec, m, min, h, hour.

Differential Revision: https://reviews.freebsd.org/D1272


# 7cf62795 19-Mar-2013 Joel Dahl <joel@FreeBSD.org>

Add simple example.


# a9cf8de2 13-Jul-2011 Glen Barber <gjb@FreeBSD.org>

Remove trailing whitespace in the shutdown(8) manual.

MFC after: 1 week


# 54d3d7c0 13-Jul-2011 Glen Barber <gjb@FreeBSD.org>

Improvements to the shutdown(8) manual.

PR: 158807
Submitted by: arundel
MFC after: 1 week


# 6868734c 30-Dec-2010 Pawel Jakub Dawidek <pjd@FreeBSD.org>

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


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 1aa26f52 23-Dec-2008 Tom Rhodes <trhodes@FreeBSD.org>

Note that when shutdown is run without options, it will place
the system into single user mode at the time specified.

PR: 129765


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 8ee0cef5 18-Jan-2005 Ruslan Ermilov <ru@FreeBSD.org>

Use the standard section name.


# 9806e231 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Mechanically kill hard sentence breaks.


# 4c723140 09-Apr-2004 Mark Murray <markm@FreeBSD.org>

Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core, imp


# 463cfa80 23-Dec-2002 Ruslan Ermilov <ru@FreeBSD.org>

Fixed the abuses of .Ql visible on stderr in troff mode.

PR: docs/37176


# ce66ddb7 21-Aug-2002 Tom Rhodes <trhodes@FreeBSD.org>

s/filesystem/file system/g as discussed on -developers


# 629e80ef 06-Jul-2002 Philippe Charnier <charnier@FreeBSD.org>

The .Nm utility.


# 3468b317 15-May-2002 Tom Rhodes <trhodes@FreeBSD.org>

more file system > filesystem


# 1f240b4c 09-Aug-2001 Dima Dorfman <dd@FreeBSD.org>

Document how to cancel a scheduled shutdown.

Obtained from: OpenBSD


# c4d9468e 07-Aug-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police:

Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.


# 9fe48c6e 10-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: removed HISTORY info from the .Os call.


# b24f6405 11-Dec-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use canonical form of .Dd macro.


# 7c7fb079 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# 7f3dea24 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 35cd460f 21-Jun-1999 Ruslan Ermilov <ru@FreeBSD.org>

Signal init(8) instead of executing halt(8) or reboot(8)
when halting or rebooting the system. It benefits from
running /etc/rc.shutdown by init(8).

``-o'' flag is provided for backward compatibility.

PR: 5451
Discussed with: des


# 1d4f4c0d 21-Jun-1999 Joseph Koshy <jkoshy@FreeBSD.org>

Minor cleanups to shutdown(8):

- Make the -k "don't actually halt" flag incompatible with
the halt/reboot options -h, -p, and -r.
- The -n "don't sync" option is ignored if -k is specified.
Issue a warning message.
- Compute the actual shutdown time written to /var/run/nologin
correctly in the case of "now" being specified.


# 16ceea1b 11-Jan-1999 Satoshi Asami <asami@FreeBSD.org>

Move nologin from /etc to /var/run. This means one less file that has
to be written to /etc.

The only essential change is in paths.h, so any third-party software
written correctly will pick it up in the next rebuild.

Reviewed by: the committers list (actually an old version)


# 502a3cc9 11-Dec-1998 Bruce Evans <bde@FreeBSD.org>

Merged from Lite2 (just an English fix or pun removal).

Updated date. I think dates in man pages should be changed at least
when a new feature is described.


# dc5fb4a2 11-Dec-1998 Bruce Evans <bde@FreeBSD.org>

Fixed disordered options in synopsis.


# 1efaa0ca 11-Dec-1998 Bruce Evans <bde@FreeBSD.org>

Fixed missing `p' flag in synopsis.

Broken in: previous commit


# 7e2d04d7 10-Dec-1998 Mike Smith <msmith@FreeBSD.org>

Add a '-p' flag to shutdown which corresponds to the '-p' flag to halt,
requesting a system power-off after shutdown.


# d3714863 03-Aug-1998 Philippe Charnier <charnier@FreeBSD.org>

Correct use of .Nm. Add rcsid. Do not dot terminate err(3) strings. Spelling.


# 8c1d6cc7 04-Jul-1997 Masafumi Max NAKANE <max@FreeBSD.org>

Add Xref to nologin(5).


# 25e43cba 01-Jul-1997 Bruce Evans <bde@FreeBSD.org>

Import Lite2's src/sbin, except for XNSrouted and routed. All relevant
files in src/sbin are off the vendor branch, so this doesn't change the
active versions.


# 32e68582 15-Feb-1995 David Greenman <dg@FreeBSD.org>

Yanked out (now obsolete) support for 'fastboot'.


# 8fae3551 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite sbin Sources

Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.