[01:12] is there a way to restart all the services started by a task such as http://upstart.ubuntu.com/cookbook/#instance ? [03:56] RoboTeddy: initctl list is very easy to parse, so thats the way to accomplish that. [04:07] SpamapS: ok, cool, thanks. here's the actual solution I came up with; I'm not sure if it's problematic: https://gist.github.com/bb349098a1b4f6fb577a [04:08] instead of using making a task that runs multiple service instances, it's a service that starts multiple services, which are in turn set to shut down when the parent service stops [04:09] I'm not sure if it's a gross misuse of upstart or not [04:10] RoboTeddy: I'm a bit confused why you don't just run the workers as children in the background of python-application using & [04:11] SpamapS: but then if a child crashed, it wouldn't automatically respawn [04:11] true [04:11] its actually pretty elegant [04:11] it's a similar setup to http://upstart.ubuntu.com/cookbook/#instance , except the parent is a service rather than a task [04:12] it makes more sense as a service really [04:12] coool, thanks for the feedback [04:12] RoboTeddy: btw, sleep 100000000 works better.. ;) [04:12] no need for the while [04:12] SpamapS: hehe true ;) I had [04:12] * I had 'sleep 1', but then realized I'd be hitting the cpu a tad [04:13] yeah true, 100000000 seconds is 3 years [04:14] RoboTeddy: yeah sleep is a free thing so just do sleep 100000 :) [04:14] RoboTeddy: in fact you can 'exec sleep 10000000' and save a process :) [04:14] SpamapS: cool, thanks [04:14] I'd go for 2**31 [04:15] 68 years, and very likely to work :) [04:15] :) gtg, thanks for the advice [04:16] * SpamapS just now realized he will turn 60 when "y2k38" hits