Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^4: Auto-restarting script if it dies

by sgifford (Prior)
on Mar 10, 2007 at 05:12 UTC ( #604109=note: print w/replies, xml ) Need Help??

in reply to Re^3: Auto-restarting script if it dies
in thread Auto-restarting script if it dies

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, 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.

In this case, the key thing that supervise does is execute whatever's in the file named run, then starts it back up again if it exits. run 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 exec your program, or else a symlink to your actual program as your run script.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://604109]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2021-01-24 00:45 GMT
Find Nodes?
    Voting Booth?