/srv/irclogs.ubuntu.com/2009/12/02/#upstart.txt

yodgo!ops04:00
jarlHi I need a little help making my own upstart conf file. Is anybody active here now?08:07
=== robbiew-afk is now known as robbiew
juan__I'm trying to use upstart to launch x as me (directly instead of using xdm/etc), but i'm no sure what to put as started on, is there a state for "boot finished" or would i be better of finding out xorgs dependancies (HAL and filesystems?)?18:29
ilowehi guys, is there a way for me to specify a command to stop a job?19:28
sadmacilowe: I don't understand the question19:30
ilowesorry: I have a command that starts a process but I need to use a different command to shut it down gracefuuly19:30
sadmacjuergbi: depends on how your distro sets up upstart.19:30
iloweI don't want to have the process simply terminated by PID 19:30
sadmacilowe: try putting it in pre-stop19:31
ilowewill stop succeed even if the PID no longer exists? I mean, pre-killing it in pre-stop won't cause an isseu?19:31
sadmacnot entirely sure. I don't think it will be a disaster even if there is a little hiccup.19:32
ilowesadmac: killer! that worked perfectly! Thanks19:40
sadmacilowe: awesome19:40
iloweany ideas on how to respond to custom events? I want my job to start on runlevel 2 as well as when abitrary event "xyz" occurs (via emit)20:21
iloweI've tried adding "start on xyz" to my job but "initctl emit xyz" doesn't seem to start the job20:22
sadmacilowe: you had it right... dunno what the issue is20:26
ilowesorry, I was trying to put the two conditions on the same line with an "or" which wasn't working20:27
sadmacilowe: what version of upstart?20:27
ilowesplitting them on two lines works beautifully20:27
mbieblilowe: that must be 0.3.x then20:27
ilowe0.3.9-820:27
sadmacilowe: yeah. in 0.6 you can't have multiple start on lines and have to use or. in 0.3 there's no or and you have to use multiple start on lines20:28
iloweis there a PPA build? I'm still on Jaunty on most of my servers.20:30
ilowehow would I use instance jobs with events to start those jobs? I mean, I'd like to emit "xyz" and have a bunch of instances of a job start.20:48
sadmacilowe: not sure if you can in 0.320:50
iloweOK, how 'bout in 0.6?20:50
sadmacif the environment from the event causes the instance's name to evaluate to something not used a new instance is born20:51
wasabiilowe, I use a task job to start instances.20:54
wasabiOh, .320:55
ilowewasabi: I can use 0.6 if I have to... I'm figuring out the upgrade path right now...20:55
JanCrunning 0.6 on jaunty isn't a good idea probably, so you would have to upgrade to karmic I think21:47
=== sadmac_ is now known as sadmac_home
=== Md is now known as Guest92607
=== Guest92607 is now known as Md

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