summaryrefslogtreecommitdiff
path: root/sbin/reboot
Commit message (Collapse)AuthorAgeFilesLines
* Use __FBSDID() to quiet GCC 3.3 warnings.David E. O'Brien2003-05-031-4/+4
| | | | Notes: svn path=/head/; revision=114589
* When kill(-1) returns ESRCH, it could be because the current processRobert Watson2003-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). Notes: svn path=/head/; revision=112991
* Add the /boot prefix. I forgot this when updating the location.Tom Rhodes2003-01-131-2/+2
| | | | | | | Neglected by: trhodes Notes: svn path=/head/; revision=109184
* Update the kernel location in FILES.Tom Rhodes2003-01-131-2/+2
| | | | | | | PR: 47015 Notes: svn path=/head/; revision=109180
* english(4) police.Jens Schweikhardt2002-12-271-1/+1
| | | | Notes: svn path=/head/; revision=108317
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-2/+2
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* mdoc(7) police: overhaul.Ruslan Ermilov2002-12-121-21/+30
| | | | Notes: svn path=/head/; revision=107776
* mdoc(7) police: Nits.Ruslan Ermilov2002-11-261-2/+2
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107257
* Fix one misspelling and two punctuation nits.Bruce A. Mah2002-11-071-3/+3
| | | | Notes: svn path=/head/; revision=106553
* Hook the new nextboot(8) manpage up to the build.Gordon Tetlow2002-11-041-1/+1
| | | | Notes: svn path=/head/; revision=106417
* Add a nextboot manual page.Gordon Tetlow2002-11-041-0/+116
| | | | | | | Spotted by: brandt@fokus.gmd.de Notes: svn path=/head/; revision=106415
* Document behaviour change in reboot(8) introduced in reboot.c rev. 1.17:Thomas Quinot2002-10-071-7/+8
| | | | | | | | | | | when using '-p' with reboot, and the power down action failds, reboot the system normally. The behaviour of 'halt -p' and of shutdown(8) is unchanged. Approved by: roberto Notes: svn path=/head/; revision=104633
* Set only the RB_POWEROFF flag (not the RB_HALT flag) whenThomas Quinot2002-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) Notes: svn path=/head/; revision=104572
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-212-7/+7
| | | | Notes: svn path=/head/; revision=102231
* The .Nm utility.Philippe Charnier2002-07-061-1/+1
| | | | Notes: svn path=/head/; revision=99503
* mdoc(7) police: nits.Ruslan Ermilov2002-05-292-3/+7
| | | | Notes: svn path=/head/; revision=97476
* Correct the file that reboot -k creates so that it works with the newGordon Tetlow2002-05-281-0/+1
| | | | | | | | | nextboot functionality. Reviewed by: jake (mentor) Notes: svn path=/head/; revision=97428
* Add a nextboot script to make it easier to control the loader nextbootGordon Tetlow2002-05-242-0/+59
| | | | | | | | | support. Also, hook it up to the build. Approved by: jake (mentor) Notes: svn path=/head/; revision=97203
* more file system > filesystemTom Rhodes2002-05-162-7/+7
| | | | Notes: svn path=/head/; revision=96707
* Rename the file used to specify the nextboot to make it clear that thisWes Peters2002-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> Notes: svn path=/head/; revision=95531
* Add a -k option to reboot to specify the kernel to boot next timeWes Peters2002-04-262-5/+34
| | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=95485
* Add forgotten flag in flag lists.Pierre Beyssac2002-03-251-2/+2
| | | | | | | | PR: docs/36267 (partial) Submitted by: Thomas Quinot <thomas.cuivre.fr.eu.org> Notes: svn path=/head/; revision=93132
* Add option -n to i386 boot2 to disallow boot interruption by keypress.Pierre Beyssac2002-03-231-1/+5
| | | | | | | | | | PR: i386/36016 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org> Reviewed by: rnordier MFC after: 1 week Notes: svn path=/head/; revision=93044
* Clarify the cylinder > 1023 issue, now that EDD support is automatic.Robert Nordier2002-03-131-5/+3
| | | | | | | | Also drop a note about undocumented features that was intended to cover the since-documented slice-selection syntax. Notes: svn path=/head/; revision=92241
* Document the "slice" syntax.Ruslan Ermilov2002-03-131-4/+15
| | | | | | | Prodded by: ambrisko Notes: svn path=/head/; revision=92226
* Implement -m and -p loader(8) "boot" command options in boot2.Ruslan Ermilov2002-03-131-2/+4
| | | | | | | | (This is more useful for 4.x where boot blocks can still load kernels, modulo the PR kern/17422.) Notes: svn path=/head/; revision=92225
* mdoc(7) police: add -p to the synopsis line as well.Ruslan Ermilov2001-12-141-1/+1
| | | | Notes: svn path=/head/; revision=87884
* Add new boot flag to i386 boot: -p.Guido van Rooij2001-12-101-0/+2
| | | | | | | | | | | | | | | This flag adds a pausing utility. When ran with -p, during the kernel probing phase, the kernel will pause after each line of output. This pausing can be ended with the '.' key, and is automatically suspended when entering ddb. This flag comes in handy at systems without a serial port that either hang during booting or reser. Reviewed by: (partly by jlemon) MFC after: 1 week Notes: svn path=/head/; revision=87620
* 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
* Use ${MACHINE}, it works with cross-builds.Ruslan Ermilov2001-09-121-4/+2
| | | | Notes: svn path=/head/; revision=83369
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-141-1/+3
| | | | Notes: svn path=/head/; revision=81622
* mdoc(7) police:Ruslan Ermilov2001-08-071-3/+6
| | | | | | | | | | 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
* Remove whitespace at EOL.Dima Dorfman2001-07-152-17/+17
| | | | Notes: svn path=/head/; revision=79754
* Constify and set WARNS=2.Dima Dorfman2001-07-152-1/+3
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=79748
* Include missing header files which define functions for which gcc hasDima Dorfman2001-06-241-0/+1
| | | | | | | builtins (e.g., exit, strcmp). Notes: svn path=/head/; revision=78732
* Remove duplicate words.Dima Dorfman2001-06-241-1/+1
| | | | Notes: svn path=/head/; revision=78686
* Remove the "undocumented" comment in re lflag.Nik Clayton2001-05-241-1/+1
| | | | Notes: svn path=/head/; revision=77122
* Document the -l option.Nik Clayton2001-05-241-4/+15
| | | | | | | | PR: docs/27440 Submitted by: Flix-Antoine Paradis <reel@sympatico.ca> Notes: svn path=/head/; revision=77121
* mdoc(7) police: normalize .Nd.Ruslan Ermilov2001-04-181-2/+1
| | | | Notes: svn path=/head/; revision=75670
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-1/+2
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74815
* Reboot(8) normally waits 5 seconds after sending SIGTERMs to allIan Dowse2001-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. Notes: svn path=/head/; revision=74525
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-22/+33
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-181-1/+2
| | | | Notes: svn path=/head/; revision=70152
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68960
* .Xr boot0cfg 8 ,Tim Vanderhoek2000-05-131-0/+1
| | | | | | | PR: misc/18267 (Usov Alexander <[3]usov@ups.kiev.ua>) Notes: svn path=/head/; revision=60501
* The new boot code uses `ad' for ATA disks, not `wd'. Correct theJoseph Koshy2000-03-031-3/+3
| | | | | | | manual page. Notes: svn path=/head/; revision=57716
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57668
* Add `.Nm fastboot' and `.Nm fasthalt' to NAME section.Alexey Zelkin2000-01-101-3/+4
| | | | Notes: svn path=/head/; revision=55766
* Add a "-d" option which causes the system to generate a crash dump.John Polstra1999-11-212-4/+17
| | | | Notes: svn path=/head/; revision=53523
* Sync with reallity (USERCONFIG_BOOT option was removed long time ago)Alexey Zelkin1999-10-151-6/+9
| | | | | | | mdoc(7)'fy Notes: svn path=/head/; revision=52253