OpenBSD CVS

CVS log for src/sbin/shutdown/shutdown.8


[BACK] Up to [local] / src / sbin / shutdown

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.44 / (download) - annotate - [select for diffs], Mon Jun 19 13:05:25 2023 UTC (11 months, 2 weeks ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.43: +11 -2 lines
Diff to previous 1.43 (colored)

The group "operator" gatekeeps a few superuser abilities (dumping disks,
manipulating tape drives -> means gid operator on device nodes).  This group
is also used with group-access bit on the setuid-root shutdown command
(mode ug+x,u+s).  Some people use this to shutdown/reboot their machines, but
use of that group is giving them disk read access also, which is wrong.
It would be a pain to re-gid all the device nodes, so instead let's renumber
the operator execution gid into group "_shutdown".
Users using this shutdown/reboot functionality will notice it no longer works,
and move themselves to the correct group.
Various choices discussed at large, this seems our best choice.
ok sthen

Revision 1.43 / (download) - annotate - [select for diffs], Sat Feb 4 13:03:58 2023 UTC (16 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

correct history, shutdown(8) appeared in 4.1BSD before 4.1c

"shutdown
Is a new command which shuts the system down at a specified time."
Bug fixes and changes in 4.1bsd
May 10, 1981
from bitsavers bits/BSD/BSD4.1_bootable.tap.gz
/usr/man/man0/changes.4-81

There may have been some confusion when checking against CSRG archives.
The 4.1 there is 4.0 with a "4.0.upgrade" directory with 4.1 files such
as 4.0.upgrade/etc/shutdown.  And 4.1a isn't a full tree.
In SCCS shutdown.c starts on Feb 7 1981.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Aug 5 09:15:28 2022 UTC (22 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.41: +6 -5 lines
Diff to previous 1.41 (colored)

Among published AT&T UNIX releases, a shutdown(8) command was contained
in PWB/UNIX 1.0 (July 1977) and in System III (1982),
but not in v7 (Jan 1979) nor in 32v (May 1979).
According to the Australian UNIX User Group Newsletter Vol. I No. I
https://www.tuhs.org/Archive/Documentation/AUUGN/AUUGN-V01.1.pdf ,
(October 1978), Letter from John Lions on page 20, UNIX/TS 1.0 (late
1978 or early 1979) also contained an implementation of shutdown(8).
So it is unlikely it came from the CSRC and more likely it was
invented either by the PWB or by the USG group.
Since we don't know for sure, only cite the first public release.

It was a mistake to say "appeared in 4.0BSD".  That release only
contained a stub manual page (without a DESCRIPTION), and the
file man8/BUGS in 4.0BSD mentions it without giving details,
presumably trying to indicate it wasn't really available yet.
The is no shutdown(8) implementation in BSD before 4.1cBSD.

OK jsg@

Revision 1.41 / (download) - annotate - [select for diffs], Thu Mar 31 17:27:20 2022 UTC (2 years, 2 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

man pages: add missing commas between subordinate and main clauses

jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@

Revision 1.40 / (download) - annotate - [select for diffs], Wed Jan 21 19:29:52 2015 UTC (9 years, 4 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.39: +8 -4 lines
Diff to previous 1.39 (colored)

Use plain "-p" to specify "halt and power down", for consistency
and compatibility with other BSDs.  Adapted from FreeBSD.
Still permit the combination "-hp" as requested by many.
ok sthen@

Revision 1.39 / (download) - annotate - [select for diffs], Mon Nov 19 08:51:49 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.38: +2 -4 lines
Diff to previous 1.38 (colored)

remove another list which just keeps going out of date;

Revision 1.38 / (download) - annotate - [select for diffs], Thu May 31 19:19:47 2007 UTC (17 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

convert to new .Dd format;

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jan 29 17:34:25 2007 UTC (17 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.36: +5 -5 lines
Diff to previous 1.36 (colored)

sort FILES;

Revision 1.36 / (download) - annotate - [select for diffs], Thu May 19 09:28:24 2005 UTC (19 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.35: +8 -8 lines
Diff to previous 1.35 (colored)

sort options + sync usage();

Revision 1.35 / (download) - annotate - [select for diffs], Wed Mar 9 13:52:20 2005 UTC (19 years, 3 months ago) by aoyama
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.34: +3 -2 lines
Diff to previous 1.34 (colored)

Sync with reboot(8) man page.
(luna88k and zaurus also work with -p option.)
ok miod@

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jul 15 10:28:29 2003 UTC (20 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

.Ql Fl -> .Sq Fl  where literal makes no sense;

Revision 1.33 / (download) - annotate - [select for diffs], Tue Jun 3 13:16:09 2003 UTC (21 years ago) by jmc
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

- section reorder
- some mdoc fixes

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jun 2 20:06:17 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.31: +2 -6 lines
Diff to previous 1.31 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Dec 13 20:16:48 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.30: +4 -3 lines
Diff to previous 1.30 (colored)

o) start new sentence on a new line;
o) wrap long lines;
o) fix bogus .Xr usage;
o) we don't like blank lines;
o) always close .Bl tags;
o) OpenBSD -> .Ox;
o) don't like .Pp before .Ss;

millert@ ok;

Revision 1.30 / (download) - annotate - [select for diffs], Thu Oct 11 19:54:29 2001 UTC (22 years, 8 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Add sparc64 to the list of arches which can poweroff at shutdown, and
sort it.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Sep 18 04:51:21 2001 UTC (22 years, 8 months ago) by miod
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Mention macppc in the list of platforms which can do poweroff at shutdown.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Aug 7 19:04:50 2001 UTC (22 years, 10 months ago) by heko
Branch: MAIN
Changes since 1.27: +1 -4 lines
Diff to previous 1.27 (colored)

No need to remove /etc/nologin after killing shutdown; signal
handler will take care of this. Pointed out by bk@rt.fm;
millert@ ok. (Although it was millert@ who asked for it
in the first place, bad me for not checking the source. :-)

Revision 1.27 / (download) - annotate - [select for diffs], Tue Aug 7 15:57:41 2001 UTC (22 years, 10 months ago) by heko
Branch: MAIN
Changes since 1.26: +9 -1 lines
Diff to previous 1.26 (colored)

Document how to cancel a scheduled shutdown with kill(1).
Also mention that /etc/nologin should be deleted after this
if needed.

ok millert@

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jun 5 15:23:44 2001 UTC (23 years ago) by aaron
Branch: MAIN
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

Alphabetize SEE ALSO entries; mpech@prosoft.org.lv

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jan 28 19:25:25 2001 UTC (23 years, 4 months ago) by marc
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.24: +2 -4 lines
Diff to previous 1.24 (colored)

remove i386 md note per Theo's request

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jan 28 19:20:12 2001 UTC (23 years, 4 months ago) by marc
Branch: MAIN
Changes since 1.23: +1 -8 lines
Diff to previous 1.23 (colored)

remove i386 md note per Theo's request

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jan 26 20:20:28 2001 UTC (23 years, 4 months ago) by marc
Branch: MAIN
Changes since 1.22: +24 -12 lines
Diff to previous 1.22 (colored)


Mention that shutdown brings the system to single user mode when issued
without options.   Other wording tweaks.   Move comment related to -p
to where -p is defined, not where -h is defined.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jan 5 04:27:23 2001 UTC (23 years, 5 months ago) by marc
Branch: MAIN
Changes since 1.21: +11 -2 lines
Diff to previous 1.21 (colored)


Add i386 specific sysctl to modify halt -p processing, required to make
powerdown work correctly on some processors.   Idea from mickey@ and
smcho@tsp.korea.ac.kr.   Tested my me and angelos@.

Note: If you want to try these out you'll need to

  cd /sys/arch/i386/include &&
sudo install -m 444 -o root -g root cpu.h /usr/include/i386
cd /usr/src/sbin/sysctl && make obj && make && sudo make install

to get a sysctl that understands the new variable (machdep.apmhalt).

Revision 1.21 / (download) - annotate - [select for diffs], Thu Nov 9 17:53:07 2000 UTC (23 years, 7 months ago) by aaron
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Change all option list specifications to ".Bl -tag -width Ds". Most man
pages just needed their -width parameter tweaked to "Ds", which provides
a nice width of 6 constant characters. For consistency more than anything.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jun 18 17:12:57 2000 UTC (23 years, 11 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.19: +23 -14 lines
Diff to previous 1.19 (colored)

- Give more precise definitions for the -d and -f options.
- Clean up FILES section.
- s/BACKWARD COMPATIBILITY/COMPATIBILITY/
- Use standard options list introduction.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Apr 15 11:45:58 2000 UTC (24 years, 1 month ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

- For consistency, `super-user' -> `superuser' in all cases.
- Some punctuation fixes.
- Some `id' -> `ID'.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Apr 12 21:48:00 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Trailing whitespace begone!

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 18 22:56:05 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.16: +9 -7 lines
Diff to previous 1.16 (colored)

Remove hard sentence breaks, and some other cleanup along the way.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jan 15 07:00:43 2000 UTC (24 years, 4 months ago) by ericj
Branch: MAIN
Changes since 1.15: +7 -2 lines
Diff to previous 1.15 (colored)

add 'd' to usage. mention rc.shutdown in the man page.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Oct 7 06:01:59 1999 UTC (24 years, 8 months ago) by ericj
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)

there is no fastboot man page

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jun 4 02:45:24 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@

Revision 1.13 / (download) - annotate - [select for diffs], Sun May 23 14:11:21 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com

Revision 1.12 / (download) - annotate - [select for diffs], Thu Apr 22 00:42:47 1999 UTC (25 years, 1 month ago) by downsj
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Add mac68k to the -p list...

Revision 1.11 / (download) - annotate - [select for diffs], Tue Dec 15 01:20:45 1998 UTC (25 years, 6 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net

Revision 1.10 / (download) - annotate - [select for diffs], Sat Nov 28 19:56:35 1998 UTC (25 years, 6 months ago) by aaron
Branch: MAIN
Changes since 1.9: +8 -8 lines
Diff to previous 1.9 (colored)

kill redundant .Nm macro arguments; other misc fixes

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 11 22:20:01 1998 UTC (25 years, 7 months ago) by aaron
Branch: MAIN
Changes since 1.8: +4 -2 lines
Diff to previous 1.8 (colored)

more `` '' -> .Dq sillyness; remove redundant .Pp macros; other misc fixes

Revision 1.8 / (download) - annotate - [select for diffs], Thu Sep 17 04:15:02 1998 UTC (25 years, 8 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.7: +8 -7 lines
Diff to previous 1.7 (colored)

sbin/ man page fixes

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 2 14:37:34 1997 UTC (26 years, 8 months ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

Slight update.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 25 14:27:46 1997 UTC (26 years, 10 months ago) by kstailey
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

word choice

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 25 14:26:45 1997 UTC (26 years, 10 months ago) by kstailey
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

correct -d typo

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jul 25 04:45:53 1997 UTC (26 years, 10 months ago) by mickey
Branch: MAIN
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored)

do -d for reboot and halt

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 22 22:29:05 1997 UTC (26 years, 11 months ago) by downsj
Branch: MAIN
Changes since 1.2: +8 -2 lines
Diff to previous 1.2 (colored)

Support halt -p.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jun 23 14:32:42 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

update rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:43:50 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:43:50 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.