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