Commit Graph

81 Commits

Author SHA1 Message Date
obrien
43cf45d89f Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
rwatson
a7ee3f5b89 When kill(-1) returns ESRCH, it could be because the current process
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).
2003-04-02 22:13:56 +00:00
trhodes
705036b159 Add the /boot prefix. I forgot this when updating the location.
Neglected by:	trhodes
2003-01-13 18:57:19 +00:00
trhodes
944d5f1863 Update the kernel location in FILES.
PR:	47015
2003-01-13 16:15:56 +00:00
schweikh
2505bee728 english(4) police. 2002-12-27 12:15:40 +00:00
ru
88d368906e Uniformly refer to a file system as "file system".
Approved by:	re
2002-12-12 17:26:04 +00:00
ru
d81157428b mdoc(7) police: overhaul. 2002-12-12 13:40:31 +00:00
ru
4e92ab59ff mdoc(7) police: Nits.
Approved by:	re
2002-11-26 09:05:06 +00:00
bmah
566e6fd08c Fix one misspelling and two punctuation nits. 2002-11-07 16:00:48 +00:00
gordon
09d0b98ef1 Hook the new nextboot(8) manpage up to the build. 2002-11-04 17:39:54 +00:00
gordon
7c025e60e2 Add a nextboot manual page.
Spotted by:	brandt@fokus.gmd.de
2002-11-04 17:35:22 +00:00
thomas
a8b381231b Document behaviour change in reboot(8) introduced in reboot.c rev. 1.17:
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
2002-10-07 21:18:20 +00:00
thomas
92ffd89229 Set only the RB_POWEROFF flag (not the RB_HALT flag) when
'-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)
2002-10-06 16:24:36 +00:00
trhodes
8dde7c54b8 s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
charnier
52d13c5a78 The .Nm utility. 2002-07-06 19:35:14 +00:00
ru
9fe8c63eec mdoc(7) police: nits. 2002-05-29 16:47:55 +00:00
gordon
6c177c58a0 Correct the file that reboot -k creates so that it works with the new
nextboot functionality.

Reviewed by:	jake (mentor)
2002-05-28 21:15:49 +00:00
gordon
1291684dc7 Add a nextboot script to make it easier to control the loader nextboot
support. Also, hook it up to the build.

Approved by:	jake (mentor)
2002-05-24 04:06:03 +00:00
trhodes
58b01fabd4 more file system > filesystem 2002-05-16 04:10:46 +00:00
wes
675489844a Rename the file used to specify the nextboot to make it clear that this
is a loader configuration file and can be used for more than just a
kernel name.

Submitted by:	Gordon Tetlow <gordont@gnf.org>
2002-04-26 22:32:15 +00:00
wes
2db3e04183 Add a -k option to reboot to specify the kernel to boot next time
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
2002-04-26 07:31:04 +00:00
pb
2101090988 Add forgotten flag in flag lists.
PR:		docs/36267	(partial)
Submitted by:	Thomas Quinot <thomas.cuivre.fr.eu.org>
2002-03-25 10:45:28 +00:00
pb
d38f414a57 Add option -n to i386 boot2 to disallow boot interruption by keypress.
PR:		i386/36016
Submitted by:	Thomas Quinot <thomas@cuivre.fr.eu.org>
Reviewed by:	rnordier
MFC after:	1 week
2002-03-23 19:40:27 +00:00
rnordier
e8bc6b203a Clarify the cylinder > 1023 issue, now that EDD support is automatic.
Also drop a note about undocumented features that was intended to
cover the since-documented slice-selection syntax.
2002-03-13 19:00:19 +00:00
ru
d36857ec24 Document the "slice" syntax.
Prodded by:	ambrisko
2002-03-13 12:30:46 +00:00
ru
e6259531fa Implement -m and -p loader(8) "boot" command options in boot2.
(This is more useful for 4.x where boot blocks can still load
kernels, modulo the PR kern/17422.)
2002-03-13 11:03:36 +00:00
ru
f19ac32a58 mdoc(7) police: add -p to the synopsis line as well. 2001-12-14 15:03:32 +00:00
guido
a0b913284f Add new boot flag to i386 boot: -p.
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
2001-12-10 20:02:22 +00:00
obrien
a537f22ad4 Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by:	mike
2001-12-04 02:19:58 +00:00
ru
49718ed005 Use ${MACHINE}, it works with cross-builds. 2001-09-12 12:21:08 +00:00
ru
173222b339 mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
ru
09d142dfd5 mdoc(7) police:
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.
2001-08-07 15:48:51 +00:00
dd
c49a4e6620 Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
dd
2068939d08 Constify and set WARNS=2.
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-07-15 05:44:23 +00:00
dd
f5d286af56 Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).
2001-06-24 23:04:23 +00:00
dd
520fa8f9e1 Remove duplicate words. 2001-06-24 01:34:38 +00:00
nik
90685c8acf Remove the "undocumented" comment in re lflag. 2001-05-24 09:28:59 +00:00
nik
e66e82fe66 Document the -l option.
PR:		docs/27440
Submitted by:	Flix-Antoine Paradis <reel@sympatico.ca>
2001-05-24 09:28:05 +00:00
ru
1db489053b mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
ru
e7c03cd6b0 - Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:33:27 +00:00
iedowse
ff69d57172 Reboot(8) normally waits 5 seconds after sending SIGTERMs to all
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.
2001-03-20 17:22:48 +00:00
ru
b1c3961564 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
ru
57f7a8db57 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ru
d16dd614f6 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
hoek
30aab534f1 .Xr boot0cfg 8 ,
PR:		misc/18267 (Usov Alexander <[3]usov@ups.kiev.ua>)
2000-05-13 14:41:04 +00:00
jkoshy
1115df8cfb The new boot code uses ad' for ATA disks, not wd'. Correct the
manual page.
2000-03-03 09:51:45 +00:00
sheldonh
ad4c77c29e Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 11:27:47 +00:00
phantom
789f35628d Add .Nm fastboot' and .Nm fasthalt' to NAME section. 2000-01-10 12:24:47 +00:00
jdp
850f0b157c Add a "-d" option which causes the system to generate a crash dump. 1999-11-21 21:52:40 +00:00
phantom
fdbca28933 Sync with reallity (USERCONFIG_BOOT option was removed long time ago)
mdoc(7)'fy
1999-10-15 12:50:18 +00:00