summaryrefslogtreecommitdiffstats
path: root/sbin/shutdown
Commit message (Collapse)AuthorAgeFilesLines
* $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)
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-071-1/+0
| | | | which is no longer bogusly installed in /usr/include.
* Yanked out (now obsolete) support for 'fastboot'.dg1995-02-152-40/+5
|
* Submitted by: M.C. Wongats1994-11-271-1/+1
| | | | | Obtained from: Don't throw away the /etc/nologin file in the -k case.
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-1/+1
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-264-0/+704
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud