corecode | hey | 01:33 |
---|---|---|
corecode | so, how do i add upstart jobs manually? | 01:33 |
corecode | tells me: start: Unknown job: foo | 01:34 |
corecode | is there more than just adding /etc/init/foo.conf? | 01:34 |
ion | You’ll probably find a parse error for foo.conf from syslog. | 01:35 |
corecode | ah, it was hidden in daemon.log | 01:36 |
corecode | not a particularly helpful error message | 01:37 |
corecode | thanks | 01:41 |
johnf | is it possible to get upstart to run the same script and keep it runninf 10 times? ie I have 10 workers listening on a queue and I want them always running | 10:06 |
ion | foo.conf: ‘instance $ID’, start foo ID=3. Unfortunately, a single job can’t currently autostart multiple instances based on a single event. You can work around that by creating another job, e.g. foo-starter.conf: ‘start on filesystem’, ‘stop on runlevel [06]’, ‘pre-start script’, ‘ for n in 0 1 2 3’, ‘ start foo ID="$n"’, ‘ done’, ‘end script’, ‘post-stop script’, ‘ for n in 0 1 2 3’, ‘ stop foo ID="$n"’, ‘ ... | 10:13 |
ion | ... done’, ‘end script’. | 10:13 |
johnf | thanks! | 10:14 |
ion | Probably better do ‘stop foo ID="$n" || :’ in the post-stop script. | 10:16 |
=== soren_ is now known as soren | ||
=== Daviey_ is now known as Daviey |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!