note
sgifford
The key to understanding these tools is to read the documentation for the programs to see exactly what they do, then extrapolate from there. See, for example, [http://cr.yp.to/daemontools/supervise.html|the supervise manual]. The reason the instructions are a bit vague is because, as with most of Unix, the software consists of a small tool which can be combined with other small tools in any number of different ways; how you will combine them will depend on exactly what you hope to accomplish.
<p>In this case, the key thing that <code>supervise</code> does is execute whatever's in the file named <code>run</code>, then starts it back up again if it exits. <code>run</code> can be a shell script, a perl script, a binary program, a symlink, or anything else that Unix knows how to execute. In your case, you probably want either a shell script to <code>exec</code> your program, or else a symlink to your actual program as your <code>run</code> script.
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-190016">
<br>
--<br>
<i>[http://www.suspectclass.com/~sgifford/|sgifford's Web page]</i>
</div></div>
603978
604054