=== pocek_ is now known as pocek | ||
dkam | Hey guys - I'm using instances in my upstart script - but how do I specify that they should be started at startup? | 11:32 |
---|---|---|
soren | Maybe create a job that starts them? | 12:35 |
dkam | soren: An upstart script, or a cronjob? | 13:03 |
soren | upstart script | 13:05 |
dkam | soren: Sorry - not quite getting it - an upstart script to start another upstart script which uses instances? | 13:10 |
soren | You haven't exactly given a lot of information. | 13:10 |
dkam | Sorry - 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 |
soren | Right. | 13:11 |
dkam | What I'm wondering is - how do I get, say 4 instances to start at boot time? | 13:11 |
soren | Do that from a script. Win. | 13:11 |
dkam | That's exactly what I'm here asking - I can't see how to do it in upstart. | 13:13 |
soren | Create an upstart job that starts all these other ones. | 13:13 |
soren | start on whatnot | 13:14 |
soren | script | 13:14 |
soren | start fetcher FID=0 | 13:14 |
soren | start fetcher FID=1 | 13:14 |
soren | start fetcher FID=2 | 13:14 |
soren | start fetcher FID=3 | 13:14 |
soren | start fetcher FID=4 | 13:14 |
soren | start fetcher FID=5 | 13:14 |
soren | .... | 13:14 |
soren | start fetcher FID=10000000 | 13:14 |
soren | end script | 13:14 |
soren | Celebrate | 13:14 |
dkam | Haha | 13:15 |
dkam | Thanks. I'll give that a shot. | 13:15 |
dkam | Works 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!