[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>
|
---|
[29f033a] | 21 | <para><command>svscanboot</command> is simply a script that calls svscan and
|
---|
| 22 | pipes its output to readproctitle.</para></sect3>
|
---|
[f45b1953] | 23 |
|
---|
| 24 | <sect3><title>svscan</title>
|
---|
[29f033a] | 25 | <para><command>svscan</command> checks the service directory for daemons to run
|
---|
| 26 | and starts a <command>supervise</command> process for each run script that it
|
---|
| 27 | 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>
|
---|
[29f033a] | 57 | <para><command>readproctitle</command> displays log entries in the output of ps.
|
---|
| 58 | </para></sect3>
|
---|
[f45b1953] | 59 |
|
---|
| 60 | <sect3><title>multilog</title>
|
---|
[29f033a] | 61 | <para><command>multilog</command> is a logging program. It takes output from a
|
---|
| 62 | daemon and appends it to any number of logs.</para></sect3>
|
---|
[f45b1953] | 63 |
|
---|
| 64 | <sect3><title>tai64n</title>
|
---|
[29f033a] | 65 | <para><command>tai64n</command> is a timestamp generating program.</para>
|
---|
| 66 | </sect3>
|
---|
[f45b1953] | 67 |
|
---|
| 68 | <sect3><title>tai64nlocal</title>
|
---|
[29f033a] | 69 | <para><command>tai64nlocal</command> converts output of tai64n into a human
|
---|
| 70 | readable format.</para></sect3>
|
---|
[f45b1953] | 71 |
|
---|
| 72 | <sect3><title>setuidgid</title>
|
---|
[29f033a] | 73 | <para><command>setuidgid</command> runs a specified program under a given
|
---|
| 74 | account's uid and gid.</para></sect3>
|
---|
[f45b1953] | 75 |
|
---|
| 76 | <sect3><title>envuidgid</title>
|
---|
[29f033a] | 77 | <para><command>envuidgid</command> performs the same function as setuidgid,
|
---|
| 78 | but sets environment variables <envar>UID</envar> and <envar>GID</envar> equal
|
---|
| 79 | to the uid and gid of the account specified.</para></sect3>
|
---|
[f45b1953] | 80 |
|
---|
| 81 | <sect3><title>envdir</title>
|
---|
[29f033a] | 82 | <para><command>envdir</command> runs a given program with environment variables
|
---|
| 83 | specified by files in a directory.</para></sect3>
|
---|
[f45b1953] | 84 |
|
---|
| 85 | <sect3><title>softlimit</title>
|
---|
[29f033a] | 86 | <para><command>softlimit</command> allows resource limits to be set for a given
|
---|
| 87 | program.</para></sect3>
|
---|
[f45b1953] | 88 |
|
---|
| 89 | <sect3><title>setlock</title>
|
---|
[29f033a] | 90 | <para><command>setlock</command> locks a file and runs a program.</para></sect3>
|
---|
[f45b1953] | 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|