Abstract from shutdown initiation mechanism:

(shutdown_initiate): New.
(shut): Use it.  Shutdown in zero minutes no longer cancels the
shutdown, it just works.  Use negative argument to cancel.  Logging is
less detailed.
(shutdown_sequence): Internal linkage.

(pr_wall): All callers prefix text it with the same header.  Move it
into the function.
This commit is contained in:
Markus Armbruster 2007-01-20 20:40:52 +00:00
parent 516f42e063
commit 84cfd670ce
5 changed files with 70 additions and 59 deletions

View file

@ -2,7 +2,7 @@
.NA shutdown "Shut down the server"
.LV Expert
.SY "shutdown <minutes> <disable update?>"
Shutdown the server in <minutes> minutes. If <minutes> is 0,
Shutdown the server in <minutes> minutes. If <minutes> is negative,
then any previous shutdown request will be canceled. If
the second argument is a "n" then updates will not be disabled
(otherwise they will be).