Commit Graph

91 Commits

Author SHA1 Message Date
roy
85f97b7a69 reboot: fix arg order for logwtmpx(3)
Matches the correct order from init(1).

Thanks to Sascha Wildner <swildner@dragonflybsd.org>
2019-08-08 21:14:12 +00:00
sevan
1bfbbe603d A standalone reboot utility showed up in 4.0BSD.
In AT&T UNIX init has a case for reboot and is present in the version shipped
with V5.
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V5/usr/source/s1/init.c

Amend HISTORY section.
Bump date.
2016-09-12 05:43:15 +00:00
christos
6a9b095c0d include the headers that we need 2012-11-04 22:28:16 +00:00
joerg
eccb2789c7 static + __dead 2011-08-27 18:44:44 +00:00
wiz
32cebeb729 Add -vxz to SYNOPSIS and usage. 2011-02-16 19:32:26 +00:00
dyoung
00ef49e965 Add flags -v, -x, and -z for verbose, debug, and silent shutdowns,
respectively, by passing flags AB_VERBOSE, AB_DEBUG, and/or AB_SILENT to
reboot(2).
2011-02-16 17:53:31 +00:00
pooka
a97eadf766 multicore update 2010-12-12 11:38:42 +00:00
lukem
ddd1724f86 xref rescue(8) 2008-10-21 02:32:37 +00:00
lukem
6543a91fea Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
2008-07-20 01:20:21 +00:00
wiz
723dae1494 New sentence, new line. 2008-05-25 20:08:56 +00:00
dholland
322ddd589b Set off symbolic signal names (SIG...) with .Dv, and crossreference init(8).
From PR bin/36551 by Greg A. Woods. And while I'm here, fix a grammar nit.
2008-02-09 04:31:43 +00:00
dholland
317c569692 Add warn() in a couple places where it was missing, and clarify one of
the existing warnings slightly. Suggested by PR bin/36551 by Greg A. Woods.
2008-02-09 04:27:06 +00:00
uwe
7a2d8df57b Document that reboot(8) passes any arguments to reboot(2) as bootstr. 2007-06-03 22:39:47 +00:00
jnemeth
c0e06197a8 Add a caveat about reboot(8) not running shutdown scripts. This addresses
(at least partially) PR/35067 by Blair Sadewitz.
2007-05-24 23:19:43 +00:00
christos
885f3f0a50 Only eat the - if argv[0] starts with a - 2007-05-17 00:32:01 +00:00
agc
276d62f603 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
wiz
52c7291619 Bump date. 2003-04-04 19:02:44 +00:00
perry
aa62e15ec9 1) Remove a reference to a 30 second delay left when Ignatios
backed out a 30 second delay from the program.
2) Add a CAVEATS section noting that the command cannot and should not
   be stopped once started.
2003-04-04 18:13:47 +00:00
perry
cf423b3982 1) To eliminate a race condition in which the user could conceivably
try to quit or stop the program right at the moment after the it
   sends a TSTP to init, move the kill(1, TSTP) to right after we
   block most signals, instead of doing it just before.
2) To add TSTP to the signals we ignore. Once we start halting, it
   really is not safe to try to stop at all. You can't change your
   mind halfway through -- init will already be stopped and a TERM
   will have been sent to everything on the system within
   milliseconds of starting.
3) Adjust one comment for TNF
2003-04-04 17:43:08 +00:00
wiz
990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz
09cbac4e7f New sentence, new line. From Robert Elz. 2002-10-03 15:41:44 +00:00
wiz
42ec3bd114 Support wtmpx. 2002-08-02 15:05:57 +00:00
wiz
d9deaad608 de__P(), ANSIfy. 2002-08-02 14:59:40 +00:00
tsutsui
4b541a44d0 Drop a trailing space in bootstr[] properly. 2002-07-20 06:44:45 +00:00
wiz
73d9fb5b1f Sync order of programs with their actions, noted by mrg. 2002-04-17 16:31:02 +00:00
wiz
13dc9abfef Sort SEE ALSO, use .Pp for paragraphs. 2001-11-16 12:06:32 +00:00
wiz
4ce43ae0cd Whitespace nits 2001-11-16 10:25:42 +00:00
mrg
6aca287eb4 expand -n documentation; from sunos. 2001-06-20 02:07:02 +00:00
cgd
8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
lukem
f022cce90b use openlog correctly... 2001-01-10 03:41:35 +00:00
hubertf
416a0bca75 Implement a "poweroff" command which is equivalent to "halt -p",
but allows powering down the system from an exec(2) call, e.g. via
a user which has "poweroff" as login shell.

The command name is modeled after Solaris.
2000-04-25 14:03:25 +00:00
jdolecek
a519c15410 Ignore SIGPIPE, otherwise we might be stuck when run within a pipe.
Fix from bin/5359 by Nathan J Williams.
2000-03-07 20:02:59 +00:00
simonb
d9c745bf82 "-l" means _don't_ log to syslog(3). 1999-08-19 13:43:27 +00:00
is
3523dc9c50 Back out the wait-for-slowly-dying-processes change. 1998-10-09 18:50:35 +00:00
augustss
91b9544ee2 Ignore some more signal during the reboot. Without this fix it's impossible
to e.g. reboot from a menu in the window manager as the reboot process
gets killed before it is done.
1998-08-29 11:17:20 +00:00
mycroft
b93acf4aaf const poisoning. 1998-07-26 20:02:36 +00:00
is
a7557bc638 Change poll interval to 1 seconds, for machines booting _really_ fast. 1998-07-06 05:21:07 +00:00
is
25718b8405 Make halt and reboot wait up to 32 seconds after kill(-1, SIGTERM), but
check at 3 second intervals if any are left.
This will help slow machines to cleanly shut down X servers (to make the
console visible), databases, or Usenet news servers.
1998-07-03 13:59:56 +00:00
thorpej
5f9840e94e Add a -p option to halt(8), specifying that the system should be powered
down.
1998-06-06 21:05:41 +00:00
mycroft
e3e9aba051 Correct the tense of one sentence. 1998-01-20 23:43:41 +00:00
mycroft
689db8fcc6 Use warn*(3). 1998-01-20 23:41:57 +00:00
mycroft
bc0a5a65c3 Clean up documentation a bit, and document the `-l' option. 1998-01-20 23:37:27 +00:00
mrg
970a5291cd fix reboot arguments handling (from cgd). 1997-12-09 05:49:14 +00:00
enami
0d4522a03f Fix .Nm usage. 1997-10-20 09:11:16 +00:00
lukem
2ddc10a0ab define WARNS?=1 for all of sbin/* 1997-09-15 12:45:47 +00:00
lukem
be24f789ad - use .Nm correctly
- use __progname instead of rindex(argv[0]) ...
1997-09-15 07:38:32 +00:00
mikel
158fe89700 xref sync(8) not nonexistent sync(1), reorder xrefs 1997-07-22 05:35:45 +00:00
perry
404afa3db4 add WARNS=1 1997-07-19 23:04:24 +00:00
perry
6b1fa5ab98 1) Make WARNS=1 clean
2) to do 1), nuke the silly local version of err()
3) nuke "register" declarations.
1997-07-19 23:03:54 +00:00
perry
28753bf1c0 fix pr-2619, from cgd. really obscure bug in exec'ing reboot when single user. 1997-07-19 22:27:20 +00:00