/srv/irclogs.ubuntu.com/2009/11/26/#upstart.txt

=== Md is now known as Guest78494
=== Guest78494 is now known as Md
twiinzhi there09:54
twiinzi'm planning to use upstart instances to manage subprocesses, i get the instance name from a database, im not sure what woud be the best approach to get all thoses instance to start automatically on a reboot, or on command09:56
twiinzso far i've worked out a system where my instances start on an event, and made second upstart conf file whose job is to loop throughout the list it got from the database and emits events09:58
twiinzbut i've got a feeling there's an easier way to accomplish that, most of the examples i found about instance mention ttys, is there a built in way to say in the instance conf file, for the given runlevels iterate through this list of ttys [1, 2, 3, 4, 5, 6]?10:00
=== robbiew_ is now known as robbiew
BleSSdoes upstart is only valid to use with shell scripts?18:27
ionUpstart can run and monitor any processes.18:28
BleSSI say because I'm changing my bash scripts to python since that bash is very cryptic and unmaintaneable18:28
BleSSion: but in the next page http://upstart.ubuntu.com/getting-started.html says: shell script code that will be executed using /bin/sh18:31
ionThe job definitions support scripting in sh, yes.18:31
BleSSso it isn't possible use python there, is it?18:32
ionWithin job definitions? Not at the moment at least. But job definitions tend to be so simple sh is sufficient. Having a single interpreter for all job definitions is a good idea IMO, unless there’s a compelling reason to change that.18:35
BleSSthanks ion18:42
=== robbiew is now known as robbiew_

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!