yodgo | !ops | 04:00 |
---|---|---|
jarl | Hi 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 |
ilowe | hi guys, is there a way for me to specify a command to stop a job? | 19:28 |
sadmac | ilowe: I don't understand the question | 19:30 |
ilowe | sorry: I have a command that starts a process but I need to use a different command to shut it down gracefuuly | 19:30 |
sadmac | juergbi: depends on how your distro sets up upstart. | 19:30 |
ilowe | I don't want to have the process simply terminated by PID | 19:30 |
sadmac | ilowe: try putting it in pre-stop | 19:31 |
ilowe | will stop succeed even if the PID no longer exists? I mean, pre-killing it in pre-stop won't cause an isseu? | 19:31 |
sadmac | not entirely sure. I don't think it will be a disaster even if there is a little hiccup. | 19:32 |
ilowe | sadmac: killer! that worked perfectly! Thanks | 19:40 |
sadmac | ilowe: awesome | 19:40 |
ilowe | any 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 |
ilowe | I've tried adding "start on xyz" to my job but "initctl emit xyz" doesn't seem to start the job | 20:22 |
sadmac | ilowe: you had it right... dunno what the issue is | 20:26 |
ilowe | sorry, I was trying to put the two conditions on the same line with an "or" which wasn't working | 20:27 |
sadmac | ilowe: what version of upstart? | 20:27 |
ilowe | splitting them on two lines works beautifully | 20:27 |
mbiebl | ilowe: that must be 0.3.x then | 20:27 |
ilowe | 0.3.9-8 | 20:27 |
sadmac | ilowe: 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 lines | 20:28 |
ilowe | is there a PPA build? I'm still on Jaunty on most of my servers. | 20:30 |
ilowe | how 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 |
sadmac | ilowe: not sure if you can in 0.3 | 20:50 |
ilowe | OK, how 'bout in 0.6? | 20:50 |
sadmac | if the environment from the event causes the instance's name to evaluate to something not used a new instance is born | 20:51 |
wasabi | ilowe, I use a task job to start instances. | 20:54 |
wasabi | Oh, .3 | 20:55 |
ilowe | wasabi: I can use 0.6 if I have to... I'm figuring out the upgrade path right now... | 20:55 |
JanC | running 0.6 on jaunty isn't a good idea probably, so you would have to upgrade to karmic I think | 21: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!