aboutsummaryrefslogtreecommitdiff
path: root/sbin/shutdown
Commit message (Collapse)AuthorAgeFilesLines
* Centralize _PATH_* definitions.David E. O'Brien2003-05-052-43/+1
| | | | | | | Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me) Notes: svn path=/head/; revision=114763
* Use __FBSDID() to quiet GCC 3.3 warnings.David E. O'Brien2003-05-031-4/+4
| | | | Notes: svn path=/head/; revision=114589
* Fixed the abuses of .Ql visible on stderr in troff mode.Ruslan Ermilov2002-12-231-1/+1
| | | | | | | PR: docs/37176 Notes: svn path=/head/; revision=108221
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-211-1/+1
| | | | Notes: svn path=/head/; revision=102231
* The .Nm utility.Philippe Charnier2002-07-061-3/+4
| | | | Notes: svn path=/head/; revision=99503
* Move _PATH_WALL from dump and shutdown's local pathnames.h to paths.h.Juli Mallett2002-05-171-1/+1
| | | | Notes: svn path=/head/; revision=96807
* more file system > filesystemTom Rhodes2002-05-161-1/+1
| | | | Notes: svn path=/head/; revision=96707
* o remove __PWarner Losh2002-03-211-9/+9
| | | | | | | o remove main prototype Notes: svn path=/head/; revision=92883
* Default to WARNS=2.David E. O'Brien2001-12-041-1/+0
| | | | | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87325
* Set BINOWN=root explicitly for setuid root binaries.Ruslan Ermilov2001-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. Notes: svn path=/head/; revision=83391
* Document how to cancel a scheduled shutdown.Dima Dorfman2001-08-091-0/+12
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=81345
* mdoc(7) police:Ruslan Ermilov2001-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. Notes: svn path=/head/; revision=81251
* Constify, de-register-ify, __unused-ify, and set WARNS=2.Dima Dorfman2001-07-152-10/+12
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=79749
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79530
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74815
* Set the default manual section for sbin/ to 8.Ruslan Ermilov2001-03-201-1/+1
| | | | Notes: svn path=/head/; revision=74531
* mdoc(7) police: use canonical form of .Dd macro.Ruslan Ermilov2000-12-111-1/+1
| | | | Notes: svn path=/head/; revision=69858
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68960
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50476
* Avoid ambigious if/elseBill Fumerola1999-07-211-2/+3
| | | | Notes: svn path=/head/; revision=48956
* Signal init(8) instead of executing halt(8) or reboot(8)Ruslan Ermilov1999-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 Notes: svn path=/head/; revision=48078
* Minor cleanups to shutdown(8):Joseph Koshy1999-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. Notes: svn path=/head/; revision=48062
* Fix a coredump with negative (due to overflow) offset values.Ruslan Ermilov1999-06-181-3/+4
| | | | Notes: svn path=/head/; revision=48004
* Move nologin from /etc to /var/run. This means one less file that hasSatoshi Asami1999-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) Notes: svn path=/head/; revision=42515
* Merged from Lite2 (one bcopy -> memmove, one significant change:Bruce Evans1998-12-111-4/+5
| | | | | | | | don't unlink _PATH_NOLOGIN for the -k case even if shutdown terminates abnormally. NetBSD already has this change). Notes: svn path=/head/; revision=41684
* Fixed missing 'p' and `-' flags and other defects in the usage message.Bruce Evans1998-12-111-4/+5
| | | | | | | Fixed some style bugs. Notes: svn path=/head/; revision=41683
* Merged from Lite2 (just an English fix or pun removal).Bruce Evans1998-12-111-4/+4
| | | | | | | | Updated date. I think dates in man pages should be changed at least when a new feature is described. Notes: svn path=/head/; revision=41680
* Fixed disordered options in synopsis.Bruce Evans1998-12-111-2/+2
| | | | Notes: svn path=/head/; revision=41679
* Fixed missing `p' flag in synopsis.Bruce Evans1998-12-111-2/+2
| | | | | | | Broken in: previous commit Notes: svn path=/head/; revision=41678
* Add a '-p' flag to shutdown which corresponds to the '-p' flag to halt,Mike Smith1998-12-102-7/+21
| | | | | | | requesting a system power-off after shutdown. Notes: svn path=/head/; revision=41666
* Remove useless `BINOWN=root' now that it is the default.David E. O'Brien1998-09-191-1/+0
| | | | Notes: svn path=/head/; revision=39495
* Correct use of .Nm. Add rcsid. Do not dot terminate err(3) strings. Spelling.Philippe Charnier1998-08-032-17/+19
| | | | Notes: svn path=/head/; revision=38036
* Pass an actual empty environment to execle() as per POSIX rather thanAlexander Langer1998-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. Notes: svn path=/head/; revision=32399
* Added environment parameter to execle calls.Alexander Langer1998-01-081-3/+3
| | | | | | | Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se) via OpenBSD Notes: svn path=/head/; revision=32344
* Correct a comment from my last commit.Alexander Langer1998-01-081-2/+2
| | | | Notes: svn path=/head/; revision=32329
* Allow 'shutdown datespec' to work into the next century. Handle datesAlexander Langer1998-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. Notes: svn path=/head/; revision=32328
* Make the daemon process a true daemon by calling setsid().Joerg Wunsch1997-08-231-1/+2
| | | | | | | | PR: bin/3202 Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Notes: svn path=/head/; revision=28613
* Add Xref to nologin(5).Masafumi Max NAKANE1997-07-041-0/+1
| | | | Notes: svn path=/head/; revision=27195
* Use err(3).Philippe Charnier1997-06-191-21/+13
| | | | Notes: svn path=/head/; revision=26737
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24359
* -n was brokenAdam David1997-01-211-5/+0
| | | | | | | 2.2 candidate (probably) Notes: svn path=/head/; revision=21931
* Delete bogus referneces to timezone code internal header file `tzfile.h',Garrett Wollman1995-08-071-1/+0
| | | | | | | which is no longer bogusly installed in /usr/include. Notes: svn path=/head/; revision=9987
* Yanked out (now obsolete) support for 'fastboot'.David Greenman1995-02-152-40/+5
| | | | Notes: svn path=/head/; revision=6443
* Submitted by: M.C. WongAndreas Schulz1994-11-271-1/+1
| | | | | | | | Obtained from: Don't throw away the /etc/nologin file in the -k case. Notes: svn path=/head/; revision=4844
* Convert to our man installation style. Also fixed long-standing bugGarrett Wollman1994-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. Notes: svn path=/head/; revision=1855
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-264-0/+704
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558