Commit Graph

47 Commits

Author SHA1 Message Date
jdolecek
339275db14 backoff rev 1.18 & 1.19 - it's made obsolete by last rc.d changes and using
arbitrary hard time limit for /etc/rc.shutdown is not right anyway
2000-07-25 19:02:15 +00:00
jdolecek
9ada2e4d0c backoff rev 1.36 - it's made obsolete by last rc.d changes and using
arbitrary hard time limit for /etc/rc.shutdown is not right anyway
2000-07-25 18:59:44 +00:00
jdolecek
3a7c71f3b9 fix synopsis line so that the -T syntax is right 2000-07-20 17:46:57 +00:00
jdolecek
02ca64b4c6 when running /etc/rc.shutdown, don't want on it until it completes
indefinitely - by default, wait maximum of 300 seconds only
the timeout is settable via new -T flag
Adjust history to mention addition of shutdown hooks and -T option on manpage

This fixes bin/10637.
2000-07-20 17:33:57 +00:00
jdolecek
94021a19a5 when running /etc/rc.shutdown, don't wait on it until it completes
indefinitely - by default, wait maximum of 300 seconds only
the timeout is settable via new -T flag
Adjust history to mention addition of shutdown hooks and -T option on manpage,
also move description of -D further up and slighly adjust.

This fixes bin/10637.
2000-07-20 17:33:56 +00:00
is
7bf4e6a5e3 exect->execve.
During my investigation, no reason could be found to enable tracing.
Fixes PR 7782 by Christoph Martin.
1999-10-31 13:24:05 +00:00
bad
1bb90faab4 testo. We want to source /etc/rc.shutdown.
Fixes PR #6474.
1998-11-22 19:13:45 +00:00
bad
7404107445 Run /etc/rc.shutdown when the final shutdown time has come.
Thanks to Ted Lemon for helping with my English.
1998-10-29 20:12:56 +00:00
bad
af876a75fc Delete redundant "the". 1998-10-29 18:55:27 +00:00
enami
3c12da56ad Initialize the global variable `shuttime' with current time when
user requested to shutdown now, so that correct time is written in
/etc/nologin.
1998-10-09 03:01:40 +00:00
enami
2691695883 Add -p option in usage. 1998-10-09 02:26:17 +00:00
enami
138ef65e24 Sort options in SYNOPSIS alphabetically. 1998-10-09 02:24:08 +00:00
ross
029a64cc29 from Erik Bertelsen <erik@mediator.uni-c.dk>
{ put } { in } { lots } { of } { these } { to } { shut } { up } { egcs }
1998-08-25 19:18:12 +00:00
mycroft
09ef8c4ccd const poisoning. 1998-07-26 20:18:32 +00:00
mrg
c028709e08 KNF. ensure hostname is nul-terminated 1998-07-05 08:34:25 +00:00
thorpej
ff77be620b Add a -p option, to power down the system at the specified time. 1998-06-06 21:18:54 +00:00
fair
3d7afc6d03 fix bad .Xr references 1998-04-29 09:49:10 +00:00
kleink
ed110b2e5e Need <time.h> for ctime(), time(), localtime() and mktime() prototypes. 1998-04-01 15:17:31 +00:00
fair
32a679e7b7 add -D (no detach) option, per PR#4810 1998-03-23 05:00:15 +00:00
mycroft
9a257260cf Oops; remove DEBUG. 1998-01-21 00:33:56 +00:00
mycroft
fff43038f7 Slight code rearrangement. 1998-01-21 00:32:53 +00:00
mycroft
6e07276e0f Document previous changes. 1998-01-20 23:24:46 +00:00
mycroft
fea6f55d8d Recognize `-' only if it is the only argument after the time. 1998-01-20 23:13:31 +00:00
mycroft
d311785b75 Allow `-dh'. Rearrange a bit. 1998-01-20 23:05:15 +00:00
mycroft
5ecc83ac42 Use err*(3) and warn*(3). Fix reading of the message from stdin. 1998-01-20 22:30:15 +00:00
mycroft
2db779a0ce Allow a century to be specified.
Don't validate the mmddhhmm values; mktime(3) does it.
1998-01-20 22:14:09 +00:00
perry
87ea5a1ff3 make Y2K compliant and document as such. 1998-01-20 20:55:22 +00:00
mycroft
af65e81265 Make these executables world-readable. 1997-10-11 11:05:28 +00:00
enami
ae3fbb603f Don't delcare optind. 1997-10-01 02:24:29 +00:00
lukem
704a9823f1 resolve conflicts from lite-2 merge 1997-09-16 12:54:42 +00:00
lukem
38db486f8e * cleanup for WARNS=1
* deprecate register
* fix .Nm usage
1997-09-15 11:17:10 +00:00
mikel
0b09e047ba cleanup for gcc -Wall 1997-07-10 05:08:06 +00:00
jtk
67085194b6 add -d option to shutdown, as companion to reboot's -d flag (force crash dump) 1997-07-09 02:39:37 +00:00
mikel
7f50ef911a eliminate possibility that execle() will be called with one too many
arguments.
1997-01-23 05:48:06 +00:00
thorpej
8e41017b18 After passing the terminating NULL for the argv list to execle(),
don't forget the (NULL) envp.
From Lennart Augustsson <augustss@cs.chalmers.se>, PR #2737.
1996-12-11 04:05:21 +00:00
cgd
0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
cgd
06e2955ff1 specify man pages the new way. 1994-12-22 10:44:04 +00:00
mycroft
ea7b5d4ec6 Eliminate uses of some obsolete functions. 1994-09-23 14:26:58 +00:00
mycroft
b0ed579ed2 Merge with 4.4-Lite version. 1994-09-17 00:10:08 +00:00
mycroft
08f161b7f9 Don't remove /etc/nologin if `-k' was used. 1994-09-17 00:02:23 +00:00
cgd
644f391c80 when warning, actually warn about the correct thing! 1994-02-16 02:56:04 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft
5b11c06adf Add RCS indentifiers. 1993-07-31 15:27:53 +00:00
cgd
06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd
346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00