summary refs log tree commit diff
path: root/doc/runsvstat.8.html
blob: 05e97ee82a8fdde41250b11470a1d6868f1816bf (plain) (blame)
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



<html>
<head>
<title>runsvstat(8) manual page</title>
</head>
<body bgcolor='white'>
<a href='http://smarden.org/pape/'>G. Pape</a><br><a href='index.html'>runit</A><hr><p>

<h2><a name='sect0'>Name</a></h2>
runsvstat - prints the status of services monitored by <i><b>runsv</b>(8)</i>. 
<h2><a name='sect1'>Synopsis</a></h2>
<b>runsvstat</b>
[ <b>-l</b> ] <i>services</i> 
<h2><a name='sect2'>Description</a></h2>
<i>services</i> consists of one or more arguments, each
argument naming a directory. <p>
<b>runsvstat</b> checks for each directory if <i><b>runsv</b>(8)</i>
is successfully running this <i>service</i>, and if so, prints one human-readable
line reporting the status of this <i>service</i>. Optionally <i><b>runsvstat</b>(8)</i> prints
a second line, also in human-readable format, reporting the status of the
corresponding <i>log</i> <i>service</i>. 
<h2><a name='sect3'>Options</a></h2>

<dl>

<dt><b>-l</b> </dt>
<dd>log service. Check for each <i>service</i> if
there exists a corresponding <i>log</i> <i>service</i>. If so, print an additional, indented,
line reporting the status of the <i>log</i> <i>service</i>. </dd>
</dl>

<h2><a name='sect4'>Exit Codes</a></h2>
<b>runsvstat</b> exits
0, if the states of all <i>services</i> were reported successfully. <p>
For each <i>service</i>
that caused an error (e.g. the directory is not controlled by a <i><b>runsv</b>(8)</i>
process), <b>runsvstat</b> increases the exit code by one and exits non zero. The
maximum is 100. <p>
<b>runsvstat</b> exits 111 on error. 
<h2><a name='sect5'>See Also</a></h2>
<i>runsvctrl(8)</i>, <i>runsv(8)</i>,
<i>runsvdir(8)</i>, <i>runsvchdir(8)</i>, <i>runit(8)</i>, <i>runit-init(8)</i>, <i>svlogd(8)</i>, <i>svwaitdown(8)</i>,
<i>svwaitup(8)</i> <p>
 <i>http://smarden.org/runit/</i><br>
 
<h2><a name='sect6'>Author</a></h2>
Gerrit Pape &lt;pape@smarden.org&gt; <p>

<hr><p>
<a name='toc'><b>Table of Contents</b></a><p>
<ul>
<li><a name='toc0' href='#sect0'>Name</a></li>
<li><a name='toc1' href='#sect1'>Synopsis</a></li>
<li><a name='toc2' href='#sect2'>Description</a></li>
<li><a name='toc3' href='#sect3'>Options</a></li>
<li><a name='toc4' href='#sect4'>Exit Codes</a></li>
<li><a name='toc5' href='#sect5'>See Also</a></li>
<li><a name='toc6' href='#sect6'>Author</a></li>
</ul>
</body>
</html>