[dundee] Starting Scripts and Respawning

Adam Sampson ats at offog.org
Sat Mar 26 22:47:27 UTC 2011


"'Gary Short'" <gary at garyshort.org> writes:

> What is the best way to get a script to have the following properties:

It's worth checking whether your distribution offers a more capable init
than sysvinit -- for example, there's upstart, which lets you write the
kind of service you're after, while still emulating SysV-style init for
older stuff.

I'm using upstart, so all my services look like this:

start on runlevel 2
stop on runlevel 0 or runlevel 1 or runlevel 6

respawn
script
        exec /gar/sbin/portmap -t /var/empty -f
end script

-- 
Adam Sampson <ats at offog.org>                         <http://offog.org/>



More information about the dundee mailing list