/srv/irclogs.ubuntu.com/2008/10/07/#upstart.txt

=== suihkulo1ki is now known as suihkulokki
sadmac2Keybuk: had a question about dependency behavior15:17
Keybuksure15:18
sadmac2Keybuk: ok, so we want to start all possible services for a given set of states.15:18
sadmac2if service X depends on session, we start one per session15:18
sadmac2this is good15:19
sadmac2the easy way to do this is to scan the list of active states for each dependency of a state, and then take each combination of the results and make sure there's a service running for it15:19
sadmac2now, suppose we have a Session state, and a service G which depends solely on the Session state and auto-starts15:20
sadmac2so if we have user A and B logged in, they each have a service G15:20
sadmac2now, what if we start up a service C that depends on the Session state and on service G?15:21
sadmac2We get 4 copies of service C15:21
sadmac2One for your session/your service G, one for your neighbor's session and service G15:21
sadmac2one for your session and your neighbor's service G, and one for your service G and your neigbor's session'15:21
sadmac2Keybuk: I can fix this behavior a couple ways. what's the right way to behave though?15:22
ssalevanahh, greetings, sirs15:41
sadmac2Steve-O!15:42
ssalevanit is I.  what is up?15:42
sadmac2we were discussing some depsolving behaviors15:43
ssalevanrelated to depsolving dependent services?15:43
Keybuksadmac2: sounds like some intelligence required there15:43
sadmac2ssalevan: yes15:44
Keybuksince neighbour's service G and our session are theoretically not compatible15:44
sadmac2Keybuk: well, the dumb solution is to match the parameter out of G. so you say when session and G($session_id)15:44
sadmac2Keybuk: but why bug the user with that when the typical behavior is probably never right?15:45
Keybukit should do the right thing15:45
sadmac2Keybuk: what I have now is this "rooting" check. Basically any set of dependencies of any state cannot depend on anything outside that set iff something inside the set will meet the same dep15:46
Keybukthat sounds like it would dtrt15:46
sadmac2yeah, that's what I thought15:46

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