/srv/irclogs.ubuntu.com/2010/08/08/#upstart.txt

=== pocek_ is now known as pocek
dkamHey guys - I'm using instances in my upstart script - but how do I specify that they should be started at startup?11:32
sorenMaybe create a job that starts them?12:35
dkamsoren: An upstart script, or a cronjob?13:03
sorenupstart script13:05
dkamsoren: Sorry - not quite getting it - an upstart script to start another upstart script which uses instances?13:10
sorenYou haven't exactly given a lot of information.13:10
dkamSorry - I have an upstart script which uses instances. I use "service fetcher start FID=0" to start the first one, FID=1 to start the second one.13:11
sorenRight.13:11
dkamWhat I'm wondering is - how do I get, say 4 instances to start at boot time?13:11
sorenDo that from a script. Win.13:11
dkamThat's exactly what I'm here asking - I can't see how to do it in upstart.13:13
sorenCreate an upstart job that starts all these other ones.13:13
sorenstart on whatnot13:14
sorenscript13:14
soren   start fetcher FID=013:14
soren   start fetcher FID=113:14
soren   start fetcher FID=213:14
soren   start fetcher FID=313:14
soren   start fetcher FID=413:14
soren   start fetcher FID=513:14
soren    ....13:14
soren   start fetcher FID=1000000013:14
sorenend script13:14
sorenCelebrate13:14
dkamHaha13:15
dkamThanks. I'll give that a shot.13:15
dkamWorks a treat - thanks soren.13:20
=== Stevee_ is now known as Stevee

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!