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
|
<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 <B><I>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 <B><I>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 <B><I>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 <B><I>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 <pape@smarden.org> <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>
|