blob: 68b2f76082ae2724d09d66df9b1e32b8671acac8 (
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
|
<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-svdt program</title>
<meta name="Description" content="s6: the s6-svdt program" />
<meta name="Keywords" content="s6 command s6-svdt servicedir death tally process supervision s6-supervise" />
<!-- <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 <tt>s6-svdt</tt> program </h1>
<p>
<tt>s6-svdt</tt> prints the recorded death tally of a service, i.e. a list of the times
the process died, with the cause of death.
</p>
<h2> Interface </h2>
<pre>
s6-svdt [ -S | -s ] [ -n <em>maxlines</em> ] <em>servicedir</em>
</pre>
<p>
<tt>s6-svdt</tt> prints the contents of the recorded death tally of the service being
currently supervised at the <em>servicedir</em>
<a href="servicedir.html">service directory</a>, then exits 0.
</p>
<p>
For each recorded death, s6-svdt prints one line. This line contains the
following fields, separated with spaces:
</p>
<ul>
<li> A <a href="https://cr.yp.to/daemontools/tai64n.html">TAI64N</a>
timestamp .</li>
<li> The word "signal" if the death was caused by a signal, or the word
"exitcode" if the death was a normal exit. </li>
<li> The name of the signal that caused the death, or the exit code
of the process. </li>
</ul>
<h2> Options </h2>
<ul>
<li> <tt>-S</tt> : print signal names. This is the default. </li>
<li> <tt>-s</tt> : print signal numbers. The numerical value of the signal
will be printed instead of the signal name. </li>
<li> <tt>-n <em>maxlines</em></tt> : limit the output to at most
the latest <em>maxlines</em> deaths. </li>
</ul>
<h2> Exit codes </h2>
<ul>
<li> 0: success </li>
<li> 100: wrong usage </li>
<li> 111: system call failed </li>
</ul>
<h2> Notes </h2>
<ul>
<li> To obtain human-readable local time or GMT time instead of TAI64N timestamps,
simply pipe s6-svdt's output into <a href="s6-tai64nlocal.html">s6-tai64nlocal</a>. </li>
<li> Process deaths are recorded up to a default maximum of 100. This default can
be modified via the <tt>max-death-tally</tt> file in the
<a href="servicedir.html">service directory</a>. </li>
</ul>
</body>
</html>
|