summaryrefslogtreecommitdiffstats
path: root/sbin/shutdown
Commit message (Collapse)AuthorAgeFilesLines
* MFC r270289:neel2014-09-041-1/+1
| | | | | | | | Change file permissions for some setuid executables so they are "o+r". The executable itself doesn't contain any privileged information. An example of where this is useful is when makefs(8) is creating an image that includes /sbin/shutdown. This can now be done without root privileges.
* Add simple example.joel2013-03-191-1/+6
|
* Restore a piece of BSD history.des2012-08-011-3/+3
| | | | | | PR: 169127 Submitted by: Ruben de Groot <ruben@hacktor.com> MFC after: 1 week
* shutdown: Remove unnecessary 2-second delay.jilles2012-05-231-1/+0
|
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-031-1/+1
| | | | | | | | | | 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.
* Add missing static keywords for global variables to tools in sbin/.ed2011-11-041-1/+1
| | | | | | 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.
* Remove trailing whitespace in the shutdown(8) manual.gjb2011-07-141-2/+2
| | | | MFC after: 1 week
* Improvements to the shutdown(8) manual.gjb2011-07-141-12/+14
| | | | | | PR: 158807 Submitted by: arundel MFC after: 1 week
* For compatibility with Linux and Solaris add poweroff(8).pjd2010-12-303-4/+39
| | | | | | | | | | | 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
* 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
|
OpenPOWER on IntegriCloud