aboutsummaryrefslogtreecommitdiff
path: root/man/shutdown.8
diff options
context:
space:
mode:
authorKlaatu <[email protected]>2015-05-17 15:33:21 +1200
committerKlaatu <[email protected]>2015-05-17 15:33:21 +1200
commitb0de699679e8f1e39af847ed172d1ba605b4370c (patch)
tree01dac00471d61f727394e508c613b29cff0ceae5 /man/shutdown.8
bulk upload of source
Diffstat (limited to 'man/shutdown.8')
-rw-r--r--man/shutdown.889
1 files changed, 89 insertions, 0 deletions
diff --git a/man/shutdown.8 b/man/shutdown.8
new file mode 100644
index 0000000..62d6ccf
--- /dev/null
+++ b/man/shutdown.8
@@ -0,0 +1,89 @@
+.TH ninit-shutdown 8 "Dec 28, 2009"
+.SH NAME
+ninit-shutdown \- shutdown the ninit init system.
+.SH SYNOPSIS
+.B ninit-shutdown
+\-[\fIrhoqvstmST\fR] [\-E /path/to/program [arg1 arg2 ...]]
+
+.SH DESCRIPTION
+.B ninit-shutdown
+tries to properly shutdown your system with ninit.
+
+.SH USAGE
+.TP 9
+\-r
+reboot after shutdown
+.TP
+\-h
+halt after shutdown
+.TP
+\-o
+power-off after shutdown (default)
+.TP
+\-q
+quiet mode; ignores SIGINT signal; Ctrl-C does't work!
+.TP
+\-v
+be verbose
+.TP
+\-m
+only shutdown the ninit-part and exit
+.TP
+\-s \fIsecs\fR
+starting delay
+.TP
+\-t \fIsecs\fR
+delay between SIGTERM and SIGKILL
+.TP
+\-E \fIprog\fR
+execute \fIprog\fR after KILLALL; must be the last option!
+.TP
+\-T \fIsecs\fR
+if \fIsecs\fR is nonzero shutdown twice ninit part
+.TP
+\-S \fIabcd\fR
+skip to shutdown the service \fIabcd\fR
+
+.SH NOTES
+If the flags -m and -E are off then the program starts the service
+.I halt
+or
+.I reboot
+depending of the flags -h -o and -r respectively.
+
+If the flags -E and -m are on then
+.B ninit-shutdown
+execve(2)s the
+\fIprog\fR after shutting down the ninit-part.
+
+If the flag -E is on and the flag -m is off then
+.B ninit-shutdown
+execve(2)s
+the \fIprog\fR after sending SIGTERM and SIGKILL to all processes.
+
+.B ninit-shutdown
+clears respawn/cron flags on all services
+including those skipped with -S flag.
+
+.
+.SH "ENVIRON"
+.B ninit-shutdown
+uses the variables
+.B NINIT_MEMORY
+and
+.B NINIT_HOME.
+
+.SH AUTHOR
+.B ninit
+was written by Nikola Vladov and can be downloaded from
+.br
+.I http://riemann.frmi.uni-sofia.bg/ninit/
+
+Parts of
+.B ninit-shutdown
+were contributed by Bernd Wachter.
+.br
+Parts of this manpage was written by Erich Schubert.
+
+.SH "SEE ALSO"
+ninit(8), nsvc(8), execve(2), nkillall(8)