[dundee] Starting Scripts and Respawning
'Gary Short'
gary at garyshort.org
Wed Mar 30 10:40:45 UTC 2011
Thanks Adam,
We have a winner! I'm on Ubuntu and so have upstart installed, it's exactly
what I was looking for, thanks.
Maybe I'll pop down to the group one night and show off my Linux appliance
;-)
Thanks again!
Cheers,
Gary
> -----Original Message-----
> From: dundee-bounces at lists.lug.org.uk [mailto:dundee-
> bounces at lists.lug.org.uk] On Behalf Of Adam Sampson
> Sent: 26 March 2011 22:40
> To: Tayside Linux User Group
> Subject: Re: [dundee] Starting Scripts and Respawning
>
> "'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/>
>
> _______________________________________________
> dundee GNU/Linux Users Group mailing list
> dundee at lists.lug.org.uk http://dundeelug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/dundee
> Chat on IRC, #tlug on irc.lug.org.uk
>
> !DSPAM:5,4d8e6bdb31182047811739!
More information about the dundee
mailing list