summaryrefslogtreecommitdiff
path: root/doc/s6-instance-status.html
blob: 4bc6b75450299766e4500a32eac10da0680248bb (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
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="Content-Language" content="en" />
    <title>s6: the s6-instance-status program</title>
    <meta name="Description" content="s6: the s6-instance-status program" />
    <meta name="Keywords" content="s6 command s6-instance-status instance dynamic instantiation instanced services status s6-svstat" />
    <!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
  </head>
<body>

<p>
<a href="index.html">s6</a><br />
<a href="//skarnet.org/software/">Software</a><br />
<a href="//skarnet.org/">skarnet.org</a>
</p>

<h1> The s6-instance-status program </h1>

<p>
s6-instance-status gives the status of a running instance of an
<a href="instances.html">instanced service</a>, as a short human-readable
summary or programmatically parsable output.
</p>

<h2> Interface </h2>

<pre>
     s6-instance-status [ -uwNrpest | -o up,wantedup,normallyup,ready,paused,pid,exitcode,signal,signum,updownsince,readysince,updownfor,readyfor ] [ -n ] <em>servicedir</em> <em>name</em>
</pre>

<ul>
 <li> s6-instance-status expects a running, supervised
<a href="instances.html">instanced service</a> in <em>servicedir</em>,
as well as an existing instance of this service named <em>name</em>. </li>
 <li> It prints information to stdout about the monitored instance of <em>servicedir</em> named <em>name</em>. </li>
 <li> It exits 0. </li>
</ul>

<h2> Exit codes </h2>

<ul>
 <li> 0: success </li>
 <li> 100: wrong usage </li>
 <li> 111: system call failed </li>
</ul>

<h2> Options </h2>

<p>
 The options are exactly the same as the ones understood by <a href="s6-svstat.html">s6-svstat</a>.
</p>

<p>
 In fact, s6-instance-status is
nothing more than a call to <a href="s6-svstat.html">s6-svstat</a> on the service
directory representing the <em>name</em> instance. It is syntactic sugar so
the user does not have to depend on the internal representation of instances
and the location of instances' service directories.
</p>

</body>
</html>