History log of /freebsd-10.0-release/sbin/shutdown/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


248535 19-Mar-2013 joel

Add simple example.


238968 01-Aug-2012 des

Restore a piece of BSD history.

PR: 169127
Submitted by: Ruben de Groot <ruben@hacktor.com>
MFC after: 1 week


235855 23-May-2012 jilles

shutdown: Remove unnecessary 2-second delay.


229403 03-Jan-2012 ed

Replace index() and rindex() calls with strchr() and strrchr().

The index() and rindex() functions were marked LEGACY in the 2001
revision of POSIX and were subsequently removed from the 2008 revision.
The strchr() and strrchr() functions are part of the C standard.

This makes the source code a lot more consistent, as most of these C
files also call into other str*() routines. In fact, about a dozen
already perform strchr() calls.


227081 04-Nov-2011 ed

Add missing static keywords for global variables to tools in sbin/.

These tools declare global variables without using the static keyword,
even though their use is limited to a single C-file, or without placing
an extern declaration of them in the proper header file.


223992 14-Jul-2011 gjb

Remove trailing whitespace in the shutdown(8) manual.

MFC after: 1 week


223991 14-Jul-2011 gjb

Improvements to the shutdown(8) manual.

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


216823 30-Dec-2010 pjd

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


201180 29-Dec-2009 ed

Add missing `void' for functions without arguments.

While there, rename die_you_gravy_sucking_pig_dog() to something that's
less moronic.


198236 19-Oct-2009 ru

Switch the default WARNS level for sbin/ to 6.

Submitted by: Ulrich Spörlein


197560 28-Sep-2009 delphij

Static'ify internal methods and use prototype.


186431 23-Dec-2008 trhodes

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

PR: 129765


140797 25-Jan-2005 delphij

Use new style declarations instead of K&R ones.


140796 25-Jan-2005 delphij

Use modern style defination for main() and move a extern
declaration to global section.

Bump WARNS?= to 6


140456 18-Jan-2005 ru

Use the standard section name.


131488 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


128073 09-Apr-2004 markm

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

Approved by: core, imp


114763 05-May-2003 obrien

Centralize _PATH_* definitions.

Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me)


114589 03-May-2003 obrien

Use __FBSDID() to quiet GCC 3.3 warnings.


108221 23-Dec-2002 ru

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

PR: docs/37176


102231 21-Aug-2002 trhodes

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


99503 06-Jul-2002 charnier

The .Nm utility.


96807 17-May-2002 jmallett

Move _PATH_WALL from dump and shutdown's local pathnames.h to paths.h.


96707 16-May-2002 trhodes

more file system > filesystem


92883 21-Mar-2002 imp

o remove __P
o remove main prototype


87325 04-Dec-2001 obrien

Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by: mike


83391 13-Sep-2001 ru

Set BINOWN=root explicitly for setuid root binaries.

This is not "useless", as one may have non-default
setting for BINOWN in make.conf, and we still want
these to be installed setuid root in this case.


81345 09-Aug-2001 dd

Document how to cancel a scheduled shutdown.

Obtained from: OpenBSD


81251 07-Aug-2001 ru

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.


79749 15-Jul-2001 dd

Constify, de-register-ify, __unused-ify, and set WARNS=2.

Submitted by: Mike Barcroft <mike@q9media.com>


79530 10-Jul-2001 ru

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


74815 26-Mar-2001 ru

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


74531 20-Mar-2001 ru

Set the default manual section for sbin/ to 8.


69858 11-Dec-2000 ru

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


68960 20-Nov-2000 ru

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


50476 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48956 21-Jul-1999 billf

Avoid ambigious if/else


48078 21-Jun-1999 ru

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


48062 21-Jun-1999 jkoshy

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.


48004 18-Jun-1999 ru

Fix a coredump with negative (due to overflow) offset values.


42515 11-Jan-1999 asami

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)


41684 11-Dec-1998 bde

Merged from Lite2 (one bcopy -> memmove, one significant change:
don't unlink _PATH_NOLOGIN for the -k case even if shutdown terminates
abnormally. NetBSD already has this change).


41683 11-Dec-1998 bde

Fixed missing 'p' and `-' flags and other defects in the usage message.

Fixed some style bugs.


41680 11-Dec-1998 bde

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.


41679 11-Dec-1998 bde

Fixed disordered options in synopsis.


41678 11-Dec-1998 bde

Fixed missing `p' flag in synopsis.

Broken in: previous commit


41666 10-Dec-1998 msmith

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


39495 19-Sep-1998 obrien

Remove useless `BINOWN=root' now that it is the default.


38036 03-Aug-1998 charnier

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


32399 10-Jan-1998 alex

Pass an actual empty environment to execle() as per POSIX rather than
rely on undocumented behavior.

The following fixes were obtained from OpenBSD:

o -Wall fixes to tlist array initialization and assignment used
as truth value.
o Use a restricted environment.
o Improved error message when shutdown fails to exec reboot or halt.


32344 08-Jan-1998 alex

Added environment parameter to execle calls.

Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se) via OpenBSD


32329 08-Jan-1998 alex

Correct a comment from my last commit.


32328 08-Jan-1998 alex

Allow 'shutdown datespec' to work into the next century. Handle dates
in the 22nd century and beyond even though it's irrelevant with a 32-bit
time_t which expires in the year 2038.


28613 23-Aug-1997 joerg

Make the daemon process a true daemon by calling setsid().

PR: bin/3202
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>


27195 04-Jul-1997 max

Add Xref to nologin(5).


26737 19-Jun-1997 charnier

Use err(3).


24359 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


21931 21-Jan-1997 adam

-n was broken

2.2 candidate (probably)


9987 07-Aug-1995 wollman

Delete bogus referneces to timezone code internal header file `tzfile.h',
which is no longer bogusly installed in /usr/include.


6443 15-Feb-1995 dg

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


4844 27-Nov-1994 ats

Submitted by: M.C. Wong
Obtained from:
Don't throw away the /etc/nologin file in the -k case.


1855 05-Aug-1994 wollman

Convert to our man installation style. Also fixed long-standing bug
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.


1559 26-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1558,
which included commits to RCS files with non-trunk default branches.