[01:33] hey [01:33] so, how do i add upstart jobs manually? [01:34] tells me: start: Unknown job: foo [01:34] is there more than just adding /etc/init/foo.conf? [01:35] You’ll probably find a parse error for foo.conf from syslog. [01:36] ah, it was hidden in daemon.log [01:37] not a particularly helpful error message [01:41] thanks [10:06] 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:13] 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] ... done’, ‘end script’. [10:14] thanks! [10:16] Probably better do ‘stop foo ID="$n" || :’ in the post-stop script. === soren_ is now known as soren === Daviey_ is now known as Daviey