summaryrefslogtreecommitdiffstats
path: root/sbin/shutdown
Commit message (Collapse)AuthorAgeFilesLines
* Add missing `void' for functions without arguments.ed2009-12-291-4/+4
| | | | | While there, rename die_you_gravy_sucking_pig_dog() to something that's less moronic.
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-2/+0
| | | | Submitted by: Ulrich Spörlein
* Static'ify internal methods and use prototype.delphij2009-09-281-20/+20
|
* Note that when shutdown is run without options, it will placetrhodes2008-12-231-1/+7
| | | | | | the system into single user mode at the time specified. PR: 129765
* Use new style declarations instead of K&R ones.delphij2005-01-251-10/+5
|
* Use modern style defination for main() and move a externdelphij2005-01-252-4/+6
| | | | | | declaration to global section. Bump WARNS?= to 6
* Use the standard section name.ru2005-01-181-3/+3
|
* Mechanically kill hard sentence breaks.ru2004-07-021-4/+8
|
* Remove advertising clause from University of California Regent's license,markm2004-04-092-8/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Centralize _PATH_* definitions.obrien2003-05-052-43/+1
| | | | Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me)
* Use __FBSDID() to quiet GCC 3.3 warnings.obrien2003-05-031-4/+4
|
* Fixed the abuses of .Ql visible on stderr in troff mode.ru2002-12-231-1/+1
| | | | PR: docs/37176
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-211-1/+1
|
* The .Nm utility.charnier2002-07-061-3/+4
|
* Move _PATH_WALL from dump and shutdown's local pathnames.h to paths.h.jmallett2002-05-171-1/+1
|
* more file system > filesystemtrhodes2002-05-161-1/+1
|
* o remove __Pimp2002-03-211-9/+9
| | | | o remove main prototype
* Default to WARNS=2.obrien2001-12-041-1/+0
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* Set BINOWN=root explicitly for setuid root binaries.ru2001-09-131-0/+1
| | | | | | 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.
* Document how to cancel a scheduled shutdown.dd2001-08-091-0/+12
| | | | Obtained from: OpenBSD
* mdoc(7) police:ru2001-08-071-1/+1
| | | | | | | 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.
* Constify, de-register-ify, __unused-ify, and set WARNS=2.dd2001-07-152-10/+12
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+1
|
* mdoc(7) police: use canonical form of .Dd macro.ru2000-12-111-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Avoid ambigious if/elsebillf1999-07-211-2/+3
|
* Signal init(8) instead of executing halt(8) or reboot(8)ru1999-06-212-70/+100
| | | | | | | | | | 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
* Minor cleanups to shutdown(8):jkoshy1999-06-212-5/+22
| | | | | | | | | - 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.
* Fix a coredump with negative (due to overflow) offset values.ru1999-06-181-3/+4
|
* Move nologin from /etc to /var/run. This means one less file that hasasami1999-01-111-5/+5
| | | | | | | | | 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)
* Merged from Lite2 (one bcopy -> memmove, one significant change:bde1998-12-111-4/+5
| | | | | don't unlink _PATH_NOLOGIN for the -k case even if shutdown terminates abnormally. NetBSD already has this change).
* Fixed missing 'p' and `-' flags and other defects in the usage message.bde1998-12-111-4/+5
| | | | Fixed some style bugs.
* Merged from Lite2 (just an English fix or pun removal).bde1998-12-111-4/+4
| | | | | Updated date. I think dates in man pages should be changed at least when a new feature is described.
* Fixed disordered options in synopsis.bde1998-12-111-2/+2
|
* Fixed missing `p' flag in synopsis.bde1998-12-111-2/+2
| | | | Broken in: previous commit
* Add a '-p' flag to shutdown which corresponds to the '-p' flag to halt,msmith1998-12-102-7/+21
| | | | requesting a system power-off after shutdown.
* Remove useless `BINOWN=root' now that it is the default.obrien1998-09-191-1/+0
|
* Correct use of .Nm. Add rcsid. Do not dot terminate err(3) strings. Spelling.charnier1998-08-032-17/+19
|
* Pass an actual empty environment to execle() as per POSIX rather thanalex1998-01-101-10/+28
| | | | | | | | | | | 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.
* Added environment parameter to execle calls.alex1998-01-081-3/+3
| | | | Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se) via OpenBSD
* Correct a comment from my last commit.alex1998-01-081-2/+2
|
* Allow 'shutdown datespec' to work into the next century. Handle datesalex1998-01-081-1/+12
| | | | | in the 22nd century and beyond even though it's irrelevant with a 32-bit time_t which expires in the year 2038.
* Make the daemon process a true daemon by calling setsid().joerg1997-08-231-1/+2
| | | | | PR: bin/3202 Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
* Add Xref to nologin(5).max1997-07-041-0/+1
|
* Use err(3).charnier1997-06-191-21/+13
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* -n was brokenadam1997-01-211-5/+0
| | | | 2.2 candidate (probably)
OpenPOWER on IntegriCloud