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