summaryrefslogtreecommitdiffstats
path: root/sbin/reboot/reboot.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove advertising clause from University of California Regent's license,markm2004-04-091-4/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Use __FBSDID() to quiet GCC 3.3 warnings.obrien2003-05-031-4/+4
|
* When kill(-1) returns ESRCH, it could be because the current processrwatson2003-04-021-1/+1
| | | | | | doesn't have a process group, which can occur if you're working with a custom init that doesn't set up a full tty context. Rather than refusing to reboot, ignore ESRCH from the kill attempt in reboot(8).
* Set only the RB_POWEROFF flag (not the RB_HALT flag) whenthomas2002-10-061-1/+1
| | | | | | | | | | | | | | | | | | | | '-p' is used on the reboot(8) command line. This is intended for use when you want to attempt a power down action, but you want the system to reboot (not halt) if the power down action fails. This is typically useful when the power-off action performed by the kernel consists in signalling an uninterrupted power supply that it should shut down its inverter if mains power has not returned. The behaviour of shutdown(8) and init(8) is not modified; only the behaviour of invoking 'reboot -p' manually is modified, and then only in the case when a power-down action fails. Sounded reasonable to: phk Approved by: roberto (mentor)
* Correct the file that reboot -k creates so that it works with the newgordon2002-05-281-0/+1
| | | | | | nextboot functionality. Reviewed by: jake (mentor)
* Rename the file used to specify the nextboot to make it clear that thiswes2002-04-261-1/+1
| | | | | | | is a loader configuration file and can be used for more than just a kernel name. Submitted by: Gordon Tetlow <gordont@gnf.org>
* Add a -k option to reboot to specify the kernel to boot next timewes2002-04-261-5/+20
| | | | | | | | | | | | | | | | around. If the kernel boots successfully, the record of this kernel is erased, it is intended to be a one-shot option for testing kernels. This could be improved by having the loader remove the record of the next kernel to boot, it is currently removed in /etc/rc immediately after disks are mounted r/w. I'd like to MFC this before the 4.6 freeze unless there is violent objection. Reviewed by: Several on IRC MFC after: 4 days
* Constify and set WARNS=2.dd2001-07-151-1/+2
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Include missing header files which define functions for which gcc hasdd2001-06-241-0/+1
| | | | builtins (e.g., exit, strcmp).
* Remove the "undocumented" comment in re lflag.nik2001-05-241-1/+1
|
* Reboot(8) normally waits 5 seconds after sending SIGTERMs to alliedowse2001-03-201-10/+32
| | | | | | | | | | processes and then sends SIGKILLs. If a lot of processes are swapped out, this delay may not be long enough, so processes such as an X server may be killed before they have had time to clean up properly. Make this delay more dynamic by waiting up to 60 seconds for swap page-in activity to end. While I'm here, ANSIfy and remove a `register' specifier.
* Add a "-d" option which causes the system to generate a crash dump.jdp1999-11-211-2/+8
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Correct use of .Nm. Add rcsid. -Wall. Add -p flag in usage string (was missing).charnier1998-07-151-8/+11
|
* Remove lines inside #ifdef 0/#endif.charnier1997-06-301-32/+1
|
* Use err(3) instead of local copy.charnier1997-06-161-7/+13
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Add support to halt, to allow it to request that the power be turned offjulian1996-08-241-2/+6
| | | | (the RB_POWEROFF flag)
* Install aliases "fasthalt" and "fastboot" for halt and boot respectively.dg1994-08-211-1/+1
| | | | | This is for "backwards compatibility". Documented these aliases in the manual page.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+204
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud