ru
bb320bb874
mdoc(7) police: use canonical form of .Dd macro.
2000-12-11 15:20:31 +00:00
ru
ea31070695
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 16:52:27 +00:00
peter
76f0c923fe
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
billf
16090fda0f
Avoid ambigious if/else
1999-07-21 02:49:42 +00:00
ru
eba023799a
Signal init(8) instead of executing halt(8) or reboot(8)
...
when halting or rebooting the system. It benefits from
running /etc/rc.shutdown by init(8).
``-o'' flag is provided for backward compatibility.
PR: 5451
Discussed with: des
1999-06-21 16:06:21 +00:00
jkoshy
f4b6c01b89
Minor cleanups to shutdown(8):
...
- Make the -k "don't actually halt" flag incompatible with
the halt/reboot options -h, -p, and -r.
- The -n "don't sync" option is ignored if -k is specified.
Issue a warning message.
- Compute the actual shutdown time written to /var/run/nologin
correctly in the case of "now" being specified.
1999-06-21 06:21:05 +00:00
ru
97705ed6e4
Fix a coredump with negative (due to overflow) offset values.
1999-06-18 14:26:07 +00:00
asami
bde447d289
Move nologin from /etc to /var/run. This means one less file that has
...
to be written to /etc.
The only essential change is in paths.h, so any third-party software
written correctly will pick it up in the next rebuild.
Reviewed by: the committers list (actually an old version)
1999-01-11 09:07:42 +00:00
bde
518ccde50a
Merged from Lite2 (one bcopy -> memmove, one significant change:
...
don't unlink _PATH_NOLOGIN for the -k case even if shutdown terminates
abnormally. NetBSD already has this change).
1998-12-11 11:21:47 +00:00
bde
1d4f8cd23a
Fixed missing 'p' and `-' flags and other defects in the usage message.
...
Fixed some style bugs.
1998-12-11 11:04:19 +00:00
bde
0fd6c24a07
Merged from Lite2 (just an English fix or pun removal).
...
Updated date. I think dates in man pages should be changed at least
when a new feature is described.
1998-12-11 10:35:38 +00:00
bde
2b205463cc
Fixed disordered options in synopsis.
1998-12-11 10:25:55 +00:00
bde
b3cf10b03b
Fixed missing `p' flag in synopsis.
...
Broken in: previous commit
1998-12-11 10:20:54 +00:00
msmith
005aaf0be2
Add a '-p' flag to shutdown which corresponds to the '-p' flag to halt,
...
requesting a system power-off after shutdown.
1998-12-10 23:54:02 +00:00
obrien
18dba2fe21
Remove useless `BINOWN=root' now that it is the default.
1998-09-19 22:42:06 +00:00
charnier
0432758e6b
Correct use of .Nm. Add rcsid. Do not dot terminate err(3) strings. Spelling.
1998-08-03 06:22:43 +00:00
alex
3b5bff74db
Pass an actual empty environment to execle() as per POSIX rather than
...
rely on undocumented behavior.
The following fixes were obtained from OpenBSD:
o -Wall fixes to tlist array initialization and assignment used
as truth value.
o Use a restricted environment.
o Improved error message when shutdown fails to exec reboot or halt.
1998-01-10 20:11:06 +00:00
alex
7ebcb78d09
Added environment parameter to execle calls.
...
Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se ) via OpenBSD
1998-01-08 20:05:45 +00:00
alex
4ff390e719
Correct a comment from my last commit.
1998-01-08 02:23:59 +00:00
alex
52c4bf5ce3
Allow 'shutdown datespec' to work into the next century. Handle dates
...
in the 22nd century and beyond even though it's irrelevant with a 32-bit
time_t which expires in the year 2038.
1998-01-08 02:21:30 +00:00
joerg
68fb49d725
Make the daemon process a true daemon by calling setsid().
...
PR: bin/3202
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1997-08-23 14:10:34 +00:00
max
85002b50ef
Add Xref to nologin(5).
1997-07-04 06:31:52 +00:00
charnier
eb50166664
Use err(3).
1997-06-19 14:28:32 +00:00
imp
167db52912
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 03:33:12 +00:00
adam
a4845fcc5a
-n was broken
...
2.2 candidate (probably)
1997-01-21 21:07:29 +00:00
wollman
fc1f6c1d76
Delete bogus referneces to timezone code internal header file `tzfile.h',
...
which is no longer bogusly installed in /usr/include.
1995-08-07 19:17:46 +00:00
dg
e7c25e8395
Yanked out (now obsolete) support for 'fastboot'.
1995-02-15 14:35:29 +00:00
ats
ffea1bbfcc
Submitted by: M.C. Wong
...
Obtained from:
Don't throw away the /etc/nologin file in the -k case.
1994-11-27 23:52:13 +00:00
wollman
57ea13e98c
Convert to our man installation style. Also fixed long-standing bug
...
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
1994-08-05 02:42:42 +00:00
rgrimes
d038e02fd6
BSD 4.4 Lite sbin Sources
...
Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
1994-05-26 06:35:07 +00:00