1 | <sect2>
|
---|
2 | <title>Contents</title>
|
---|
3 |
|
---|
4 | <para>The daemontools package contains
|
---|
5 | <command>svscanboot</command>, <command>svscan</command>,
|
---|
6 | <command>supervise</command>, <command>svc</command>,
|
---|
7 | <command>svok</command>, <command>svstat</command>,
|
---|
8 | <command>fghack</command>, <command>pgrphack</command>,
|
---|
9 | <command>readproctitle</command>, <command>multilog</command>,
|
---|
10 | <command>tai64n</command>, <command>tai64nlocal</command>,
|
---|
11 | <command>setuidgid</command>, <command>envuidgid</command>,
|
---|
12 | <command>envdir</command>, <command>softlimit</command> and
|
---|
13 | <command>setlock</command>. More detailed descriptions of these
|
---|
14 | commands may be found at <ulink url="http://cr.yp.to/daemontools.html"/>.</para>
|
---|
15 |
|
---|
16 | </sect2>
|
---|
17 |
|
---|
18 | <sect2><title>Description</title>
|
---|
19 |
|
---|
20 | <sect3><title>svscanboot</title>
|
---|
21 | <para><command>svscanboot</command> is simply a script that calls
|
---|
22 | <command>svscan</command> and pipes its output to readproctitle.</para></sect3>
|
---|
23 |
|
---|
24 | <sect3><title>svscan</title>
|
---|
25 | <para><command>svscan</command> checks the <filename>service</filename>
|
---|
26 | directory for daemons to run and starts a <command>supervise</command> process
|
---|
27 | for each run script that it finds.</para></sect3>
|
---|
28 |
|
---|
29 | <sect3><title>supervise</title>
|
---|
30 | <para><command>supervise</command> runs the run script passed to it by
|
---|
31 | <command>svscan</command> and monitors the process the script starts so that
|
---|
32 | if it dies, <command>supervise</command> restarts it.</para></sect3>
|
---|
33 |
|
---|
34 | <sect3><title>svc</title>
|
---|
35 | <para><command>svc</command> sends signals to processes being run under
|
---|
36 | <command>supervise</command>.
|
---|
37 | </para></sect3>
|
---|
38 |
|
---|
39 | <sect3><title>svok</title>
|
---|
40 | <para><command>svok</command> checks to see that
|
---|
41 | <command>supervise</command> is running in the directory
|
---|
42 | passed to it.</para></sect3>
|
---|
43 |
|
---|
44 | <sect3><title>svstat</title>
|
---|
45 | <para><command>svstat</command> prints the status of processes monitored by
|
---|
46 | <command>supervise</command>.</para></sect3>
|
---|
47 |
|
---|
48 | <sect3><title>fghack</title>
|
---|
49 | <para><command>fghack</command> prevents processes from putting themselves into
|
---|
50 | the background.</para></sect3>
|
---|
51 |
|
---|
52 | <sect3><title>pgrphack</title>
|
---|
53 | <para><command>pgrphack</command> runs a process in a separate process group.
|
---|
54 | </para></sect3>
|
---|
55 |
|
---|
56 | <sect3><title>readproctitle</title>
|
---|
57 | <para><command>readproctitle</command> displays log entries in the output of
|
---|
58 | <command>ps</command>.
|
---|
59 | </para></sect3>
|
---|
60 |
|
---|
61 | <sect3><title>multilog</title>
|
---|
62 | <para><command>multilog</command> is a logging program. It takes output from a
|
---|
63 | daemon and appends it to any number of logs.</para></sect3>
|
---|
64 |
|
---|
65 | <sect3><title>tai64n</title>
|
---|
66 | <para><command>tai64n</command> is a timestamp generating program.</para>
|
---|
67 | </sect3>
|
---|
68 |
|
---|
69 | <sect3><title>tai64nlocal</title>
|
---|
70 | <para><command>tai64nlocal</command> converts output of tai64n into a human
|
---|
71 | readable format.</para></sect3>
|
---|
72 |
|
---|
73 | <sect3><title>setuidgid</title>
|
---|
74 | <para><command>setuidgid</command> runs a specified program under a given
|
---|
75 | account's <acronym>UID</acronym> and <acronym>GID</acronym>.</para></sect3>
|
---|
76 |
|
---|
77 | <sect3><title>envuidgid</title>
|
---|
78 | <para><command>envuidgid</command> performs the same function as setuidgid,
|
---|
79 | but sets environment variables <envar>UID</envar> and <envar>GID</envar> equal
|
---|
80 | to the <acronym>UID</acronym> and <acronym>GID</acronym> of the account specified.</para></sect3>
|
---|
81 |
|
---|
82 | <sect3><title>envdir</title>
|
---|
83 | <para><command>envdir</command> runs a given program with environment variables
|
---|
84 | specified by files in a directory.</para></sect3>
|
---|
85 |
|
---|
86 | <sect3><title>softlimit</title>
|
---|
87 | <para><command>softlimit</command> allows resource limits to be set for a given
|
---|
88 | program.</para></sect3>
|
---|
89 |
|
---|
90 | <sect3><title>setlock</title>
|
---|
91 | <para><command>setlock</command> locks a file and runs a program.</para></sect3>
|
---|
92 |
|
---|
93 | </sect2>
|
---|
94 |
|
---|