/srv/irclogs.ubuntu.com/2009/04/03/#upstart.txt

gastaghi all, can anyone point me to some documentation on the 0.5 series of upstart?11:35
Keybukgastag: there isn't much11:36
gastagok, so for stanzas definitions I have to look at the code, right?11:37
Keybukthe documentation is deliberately missing to stop people trying to do too much with it11:38
gastagisn't it considered stable?11:39
Keybukthe interfaces are not stable11:39
Keybukthus the 0. version number11:39
Keybukinstead I've been concentrating on getting the core code stable11:39
Keybukand the functionality and design we want11:39
Keybukthe current (0.3 and 0.5) series of Upstart are really only intended (and tested) working in a "backwards compatible" mode11:40
gastagI'm currently using 0.3.9, but I'd like to make use of some of the 0.5 features11:40
Keybukwhich ones?11:48
gastagKeybuk, mainly states, to be able to define multiple conditions to be true for a job to be started13:00
Keybuk0.5 doesn't have states13:01
gastagok, but you can define multiple job status as 'start on started dbus and started gdm'13:03
gastagisn't this in 0.5 ?13:03
Keybukyes13:04
Keybukbut it doesn't work13:04
Keybukfor example13:04
Keybukyou start dbus13:04
Keybuknothing happens13:04
Keybukyou start gdm13:04
Keybuknow your job starts as well13:04
Keybukwhich is good13:04
Keybuknow you stop gdm13:04
Keybukyour job stops (I assume you have stop on stopping dbus or stopping gdm as well)13:04
Keybukand you start gdm again (you were just restarting it)13:04
Keybukyour job stays stopped13:04
gastagso this just works the first time you start a job?13:06
Keybukyes13:07
gastagwhy this choice?13:07
Keybukit wasn't a choice, it just didn't work13:08
Keybukwe thought there was a way to make it work, but that didn't pan out13:12
Keybukso that's the big fix for 0.10, which is out in June13:13
gastagI understand, thanks13:14
keesjin 0.3.9 you can have multiple start on items13:31
gastagkeesj, yes but the conditions are in OR, I'd need AND13:33
keesjto solve thisproblem I guess that one would need to make upstart itself keep a in-memory tree of the "state machine"13:41
keesjbut even the "and" is a little strange when your tinkg of everything as a event13:45
gastagI agree, but "started" and "stopped" can be thought as sort of states13:49
Ploujhi14:00
Ploujis python needed for running upstart (d-bus bindings) or is it just necessary for the build/compilation of upstart?14:01
Keybukjust the build14:06
Ploujoh, nice14:07
Ploujthen there's hope it will fit on my space limited system14:07
gastagsorry, is the failure in oom_adj open failure just a warning in 0.5.1 or it is still a fatal error?14:09
Keybukstill an error14:18
gastagah ok, so it wasn't a problem in my system. I saw the bug marked as fix released in 0.5.0, but it still happened to me in 0.5.114:21
Keybukwhat's the bug#?14:27
gastag25980114:29
gastagsorry, it's not fixed in upstart14:29
Keybukdidn't think so :p14:34
keesjgastag: started and stopped are kind of states but there are other states like stopping...15:43

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