aboutsummaryrefslogtreecommitdiff
path: root/man/shutdown.8
blob: 62d6ccf3e893dd029ecd3149c63d60af9a044596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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)