Home | History | Annotate | only in /src/sbin/reboot
History log of /src/sbin/reboot
RevisionDateAuthorComments
 1.18 02-Aug-2002  wiz Support wtmpx.
 1.17 25-Apr-2000  hubertf 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.
 1.16 15-Sep-1997  lukem define WARNS?=1 for all of sbin/*
 1.15 19-Jul-1997  perry add WARNS=1
 1.14 13-Mar-1997  perry The boot_${ARCH}.8 man files never belonged in reboot -- they have
been moved to man8.${ARCH}/boot.8. Note that this means that the
references in the pages to boot.8 are now actually true on many
architectures instead of being a lie on all.
 1.13 17-Oct-1996  perry Remove boot_tahoe.8. We have no tahoe port.
 1.12 27-Jun-1996  leo Add the manual page.
 1.11 26-Jun-1996  thorpej Add boot_x68k.8 to the list of man pages to install; the distrib sets
expect it.
 1.10 08-Aug-1995  gwr branches: 1.10.6;
Add boot_sun3.8
 1.9 02-Jul-1995  briggs Reorder man page sources in makefile (alphabetize) and
add boot_mac68k.8.
 1.8 31-May-1995  mellon Make boot_pmax man page. (from jonathan)
 1.7 18-Mar-1995  cgd pseudo-merge with Lite; man pages need to be merged seperately, but
that's really a port-specific thing. They probably should be updated, too.
 1.6 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.5 22-Dec-1994  cgd specify man pages the new way.
 1.4 01-Aug-1993  mycroft Add RCS identifiers.
 1.3 23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2 22-Mar-1993  cgd added rcs ids to all files
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 18-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.6.2 28-Jun-1996  jtc Pulled up from rev 1.12 by request from Leo Weppelman
 1.10.6.1 26-Jun-1996  thorpej Update from trunk:

Add boot_x68k.8 to the list of man pages to install; the distrib sets
expect it.
 1.4 13-Mar-1997  perry The boot_${ARCH}.8 man files never belonged in reboot -- they have
been moved to man8.${ARCH}/boot.8. Note that this means that the
references in the pages to boot.8 are now actually true on many
architectures instead of being a lie on all.
 1.3 15-Oct-1996  leo Fix typo.
 1.2 15-Oct-1996  leo Be a bit more exact about when the bootloader decides to start NetBSD.
 1.1 27-Jun-1996  leo branches: 1.1.2;
Add the manual page.
 1.1.2.2 27-Jun-1996  leo Add the manual page.
 1.1.2.1 27-Jun-1996  leo file boot_atari.8 was added on branch netbsd-1-2 on 1996-06-27 11:07:57 +0000
 1.4 13-Mar-1997  perry The boot_${ARCH}.8 man files never belonged in reboot -- they have
been moved to man8.${ARCH}/boot.8. Note that this means that the
references in the pages to boot.8 are now actually true on many
architectures instead of being a lie on all.
 1.3 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.2 18-Mar-1995  cgd pseudo-merge with Lite; man pages need to be merged seperately, but
that's really a port-specific thing. They probably should be updated, too.
 1.1 18-Mar-1995  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 18-Mar-1995  cgd from Lite
 1.4 13-Mar-1997  perry The boot_${ARCH}.8 man files never belonged in reboot -- they have
been moved to man8.${ARCH}/boot.8. Note that this means that the
references in the pages to boot.8 are now actually true on many
architectures instead of being a lie on all.
 1.3 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.2 18-Mar-1995  cgd pseudo-merge with Lite; man pages need to be merged seperately, but
that's really a port-specific thing. They probably should be updated, too.
 1.1 18-Mar-1995  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 18-Mar-1995  cgd from Lite
 1.2 13-Mar-1997  perry The boot_${ARCH}.8 man files never belonged in reboot -- they have
been moved to man8.${ARCH}/boot.8. Note that this means that the
references in the pages to boot.8 are now actually true on many
architectures instead of being a lie on all.
 1.1 02-Jul-1995  briggs Reorder man page sources in makefile (alphabetize) and
add boot_mac68k.8.
 1.3 13-Mar-1997  perry The boot_${ARCH}.8 man files never belonged in reboot -- they have
been moved to man8.${ARCH}/boot.8. Note that this means that the
references in the pages to boot.8 are now actually true on many
architectures instead of being a lie on all.
 1.2 08-Mar-1997  mouse alternate -> alternative, per PR 2643
 1.1 25-Apr-1995  mellon pmax boot documentation
 1.6 13-Mar-1997  perry The boot_${ARCH}.8 man files never belonged in reboot -- they have
been moved to man8.${ARCH}/boot.8. Note that this means that the
references in the pages to boot.8 are now actually true on many
architectures instead of being a lie on all.
 1.5 09-Aug-1996  mrg update for new reboot(2).
 1.4 25-Apr-1995  pk Bits from old reboot_sparc.8 man page.
 1.3 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.2 18-Mar-1995  cgd pseudo-merge with Lite; man pages need to be merged seperately, but
that's really a port-specific thing. They probably should be updated, too.
 1.1 18-Mar-1995  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 18-Mar-1995  cgd from Lite
 1.3 13-Mar-1997  perry The boot_${ARCH}.8 man files never belonged in reboot -- they have
been moved to man8.${ARCH}/boot.8. Note that this means that the
references in the pages to boot.8 are now actually true on many
architectures instead of being a lie on all.
 1.2 09-Aug-1996  mrg update for new reboot(2).
 1.1 08-Aug-1995  gwr Add boot_sun3.8
 1.4 17-Oct-1996  perry Remove boot_tahoe.8. We have no tahoe port.
 1.3 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.2 18-Mar-1995  cgd pseudo-merge with Lite; man pages need to be merged seperately, but
that's really a port-specific thing. They probably should be updated, too.
 1.1 18-Mar-1995  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 18-Mar-1995  cgd from Lite
 1.4 13-Mar-1997  perry The boot_${ARCH}.8 man files never belonged in reboot -- they have
been moved to man8.${ARCH}/boot.8. Note that this means that the
references in the pages to boot.8 are now actually true on many
architectures instead of being a lie on all.
 1.3 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.2 18-Mar-1995  cgd pseudo-merge with Lite; man pages need to be merged seperately, but
that's really a port-specific thing. They probably should be updated, too.
 1.1 18-Mar-1995  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 18-Mar-1995  cgd from Lite
 1.2 13-Mar-1997  perry The boot_${ARCH}.8 man files never belonged in reboot -- they have
been moved to man8.${ARCH}/boot.8. Note that this means that the
references in the pages to boot.8 are now actually true on many
architectures instead of being a lie on all.
 1.1 15-Jun-1996  oki branches: 1.1.2;
x68k system bootstrapping procedures.
 1.1.2.2 15-Jun-1996  oki x68k system bootstrapping procedures.
 1.1.2.1 15-Jun-1996  oki file boot_x68k.8 was added on branch netbsd-1-2 on 1996-06-15 18:54:23 +0000
 1.30 12-Sep-2016  sevan 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.
 1.29 16-Feb-2011  wiz Add -vxz to SYNOPSIS and usage.
 1.28 16-Feb-2011  dyoung 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).
 1.27 12-Dec-2010  pooka branches: 1.27.2;
multicore update
 1.26 21-Oct-2008  lukem xref rescue(8)
 1.25 25-May-2008  wiz New sentence, new line.
 1.24 09-Feb-2008  dholland branches: 1.24.4; 1.24.6; 1.24.8;
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.
 1.23 03-Jun-2007  uwe branches: 1.23.4; 1.23.6;
Document that reboot(8) passes any arguments to reboot(2) as bootstr.
 1.22 24-May-2007  jnemeth Add a caveat about reboot(8) not running shutdown scripts. This addresses
(at least partially) PR/35067 by Blair Sadewitz.
 1.21 07-Aug-2003  agc branches: 1.21.6; 1.21.16; 1.21.18;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.20 04-Apr-2003  wiz Bump date.
 1.19 04-Apr-2003  perry 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.
 1.18 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.17 03-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.16 17-Apr-2002  wiz Sync order of programs with their actions, noted by mrg.
 1.15 16-Nov-2001  wiz Sort SEE ALSO, use .Pp for paragraphs.
 1.14 16-Nov-2001  wiz Whitespace nits
 1.13 20-Jun-2001  mrg expand -n documentation; from sunos.
 1.12 25-Apr-2000  hubertf 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.
 1.11 19-Aug-1999  simonb "-l" means _don't_ log to syslog(3).
 1.10 03-Jul-1998  is 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.
 1.9 06-Jun-1998  thorpej Add a -p option to halt(8), specifying that the system should be powered
down.
 1.8 20-Jan-1998  mycroft Correct the tense of one sentence.
 1.7 20-Jan-1998  mycroft Clean up documentation a bit, and document the `-l' option.
 1.6 20-Oct-1997  enami Fix .Nm usage.
 1.5 15-Sep-1997  lukem - use .Nm correctly
- use __progname instead of rindex(argv[0]) ...
 1.4 22-Jul-1997  mikel xref sync(8) not nonexistent sync(1), reorder xrefs
 1.3 05-Oct-1995  mycroft Add a `-d' option to force a dump. From John Kohl.
 1.2 18-Mar-1995  cgd pseudo-merge with Lite; man pages need to be merged seperately, but
that's really a port-specific thing. They probably should be updated, too.
 1.1 18-Mar-1995  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 18-Mar-1995  cgd from Lite
 1.21.18.1 04-Jun-2007  wrstuden Update to today's netbsd-4.
 1.21.16.1 30-May-2007  riz Pull up following revision(s) (requested by jnemeth in ticket #676):
sbin/reboot/reboot.8: revision 1.22
Add a caveat about reboot(8) not running shutdown scripts. This addresses
(at least partially) PR/35067 by Blair Sadewitz.
 1.21.6.1 30-May-2009  snj Pull up following revision(s) (requested by jnemeth in ticket #2016):
sbin/reboot/reboot.8: revision 1.22
Add a caveat about reboot(8) not running shutdown scripts. This addresses
(at least partially) PR/35067 by Blair Sadewitz.
 1.23.6.1 18-Feb-2008  mjf Sync with HEAD.
 1.23.4.1 23-Mar-2008  matt sync with HEAD
 1.24.8.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.24.6.1 04-Jun-2008  yamt sync with head
 1.24.4.2 17-Jan-2009  mjf Sync with HEAD.
 1.24.4.1 02-Jun-2008  mjf Sync with HEAD.
 1.27.2.1 17-Feb-2011  bouyer Sync with HEAD
 1.41 08-Aug-2019  roy reboot: fix arg order for logwtmpx(3)

Matches the correct order from init(1).

Thanks to Sascha Wildner <swildner@dragonflybsd.org>
 1.40 04-Nov-2012  christos branches: 1.40.30; 1.40.32;
include the headers that we need
 1.39 27-Aug-2011  joerg branches: 1.39.2; 1.39.8;
static + __dead
 1.38 16-Feb-2011  wiz Add -vxz to SYNOPSIS and usage.
 1.37 16-Feb-2011  dyoung 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).
 1.36 20-Jul-2008  lukem branches: 1.36.14;
Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
 1.35 09-Feb-2008  dholland branches: 1.35.4; 1.35.8;
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.
 1.34 17-May-2007  christos branches: 1.34.4; 1.34.6;
Only eat the - if argv[0] starts with a -
 1.33 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.32 04-Apr-2003  perry 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
 1.31 02-Aug-2002  wiz Support wtmpx.
 1.30 02-Aug-2002  wiz de__P(), ANSIfy.
 1.29 20-Jul-2002  tsutsui Drop a trailing space in bootstr[] properly.
 1.28 19-Feb-2001  cgd convert to use getprogname()
 1.27 10-Jan-2001  lukem use openlog correctly...
 1.26 25-Apr-2000  hubertf 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.
 1.25 07-Mar-2000  jdolecek Ignore SIGPIPE, otherwise we might be stuck when run within a pipe.

Fix from bin/5359 by Nathan J Williams.
 1.24 09-Oct-1998  is Back out the wait-for-slowly-dying-processes change.
 1.23 29-Aug-1998  augustss 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.
 1.22 26-Jul-1998  mycroft const poisoning.
 1.21 06-Jul-1998  is Change poll interval to 1 seconds, for machines booting _really_ fast.
 1.20 03-Jul-1998  is 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.
 1.19 06-Jun-1998  thorpej Add a -p option to halt(8), specifying that the system should be powered
down.
 1.18 20-Jan-1998  mycroft Use warn*(3).
 1.17 20-Jan-1998  mycroft Clean up documentation a bit, and document the `-l' option.
 1.16 09-Dec-1997  mrg fix reboot arguments handling (from cgd).
 1.15 15-Sep-1997  lukem branches: 1.15.2;
- use .Nm correctly
- use __progname instead of rindex(argv[0]) ...
 1.14 19-Jul-1997  perry 1) Make WARNS=1 clean
2) to do 1), nuke the silly local version of err()
3) nuke "register" declarations.
 1.13 19-Jul-1997  perry fix pr-2619, from cgd. really obscure bug in exec'ing reboot when single user.
 1.12 17-Jul-1997  perry fix halt when used as login shell, from cgd in pr-2618
 1.11 16-Sep-1996  mrg only log the bootstr if it exists.
 1.10 10-Aug-1996  mrg use the SunOS derived RB_STRING.
 1.9 09-Aug-1996  mrg update for new reboot(2).
 1.8 05-Oct-1995  mycroft Add a `-d' option to force a dump. From John Kohl.
 1.7 18-Mar-1995  cgd pseudo-merge with Lite; man pages need to be merged seperately, but
that's really a port-specific thing. They probably should be updated, too.
 1.6 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.5 18-Dec-1994  cgd -Wall cleanups from Jim Jegers
 1.4 01-Aug-1993  mycroft Add RCS identifiers.
 1.3 23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2 22-Mar-1993  cgd added rcs ids to all files
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 18-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.15.2.1 09-Dec-1997  thorpej Pull up from trunk: fix reboot string passing (mrg)
 1.34.6.1 18-Feb-2008  mjf Sync with HEAD.
 1.34.4.1 23-Mar-2008  matt sync with HEAD
 1.35.8.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.35.4.1 28-Sep-2008  mjf Sync with HEAD.
 1.36.14.1 17-Feb-2011  bouyer Sync with HEAD
 1.39.8.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.39.2.1 16-Jan-2013  yamt sync with (a bit old) head
 1.40.32.1 09-Aug-2019  martin Pull up following revision(s) (requested by roy in ticket #34):

sbin/reboot/reboot.c: revision 1.41

reboot: fix arg order for logwtmpx(3)
Matches the correct order from init(8).

Thanks to Sascha Wildner <swildner@dragonflybsd.org>
 1.40.30.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.4 23-Apr-1995  cgd remove these (deprecated) files. port maintainers were warned about
their impending disappearance a while ago; they can still be retrieved
from the attic.
 1.3 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.2 14-Feb-1994  cgd U* to NetBSD, as appropriate
 1.1 08-Feb-1994  chopps describes amiga's actions on exec of reboot
 1.5 23-Apr-1995  cgd remove these (deprecated) files. port maintainers were warned about
their impending disappearance a while ago; they can still be retrieved
from the attic.
 1.4 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.3 14-Feb-1994  cgd U* to NetBSD, as appropriate
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 13-May-1993  cgd add hp300 man page
 1.9 23-Apr-1995  cgd remove these (deprecated) files. port maintainers were warned about
their impending disappearance a while ago; they can still be retrieved
from the attic.
 1.8 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.7 14-Feb-1994  cgd U* to NetBSD, as appropriate
 1.6 14-Jan-1994  jtc Fix spelling errors
 1.5 01-Aug-1993  mycroft Add RCS indentifiers.
 1.4 13-Jun-1993  mycroft Update file names. This man page needs some more work.
 1.3 23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2 22-Mar-1993  cgd added rcs ids to all files
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.4 23-Apr-1995  cgd remove these (deprecated) files. port maintainers were warned about
their impending disappearance a while ago; they can still be retrieved
from the attic.
 1.3 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.2 14-Feb-1994  cgd U* to NetBSD, as appropriate
 1.1 06-Dec-1993  briggs This is currently just the hp300 man page with the boot sequence
description removed. It needs to describe the macintosh boot
in some detail and perhaps note that the macintosh doesn't work
as described in all cases (yet).
 1.3 23-Apr-1995  cgd remove these (deprecated) files. port maintainers were warned about
their impending disappearance a while ago; they can still be retrieved
from the attic.
 1.2 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.1 13-Jun-1994  phil We need this.
 1.4 23-Apr-1995  cgd remove these (deprecated) files. port maintainers were warned about
their impending disappearance a while ago; they can still be retrieved
from the attic.
 1.3 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.2 18-Jan-1995  mellon Fixed formatting and expanded content
 1.1 18-Jan-1995  mellon reboot documentation for pmax
 1.4 23-Apr-1995  cgd remove these (deprecated) files. port maintainers were warned about
their impending disappearance a while ago; they can still be retrieved
from the attic.
 1.3 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.2 14-Feb-1994  cgd U* to NetBSD, as appropriate
 1.1 13-Feb-1994  deraadt first cut

RSS XML Feed