[05:46] <ribo> how do I get a proper serial console with upstart?
[04:03] <asdaf> Hi all
[04:05] <Keybuk> hi
[04:09] <reppel> Hi, is it possible to define something i call "systemup" which should be emited when two jobs are finished?
[04:10] <reppel> for instance "networking and fs"
[04:12] <Keybuk> within upstart?  not directly
[04:12] <Keybuk> you can obviously run "initctl emit systemup"
[04:13] <reppel> yes but how do i know when both net and fs jobs have finished?
[04:13] <Keybuk> that's being worked on at the moment
[04:13] <reppel> ah ok thank you
[04:33] <AlexExtreme> hmm that profile syntax looks better ;)
[04:59] <Keybuk> heh
[04:59] <Keybuk> the primary advantage would be you can parse it with one function call and a table :)
[05:00] <Keybuk> and then we could have /etc/init.conf
[05:00] <Keybuk>   profile foo
[05:00] <Keybuk>     enable *
[05:00] <Keybuk>     disable bar
[05:00] <Keybuk>   end profile
[05:00] <Keybuk>   job bar
[05:00] <Keybuk>     ..
[05:00] <Keybuk>   end job
[05:00] <Keybuk> if we wanted
[05:00] <AlexExtreme> yeah
[05:00] <AlexExtreme> i knew nothing about nih/config ;)
[06:44] <Keybuk> AlexExtreme: it's the code upstart uses for its own config file
[06:44] <Keybuk> seemed sensible to libraryfy it
[06:44] <AlexExtreme> yeah
[06:46] <Keybuk> at that point, you just need two functions, cfg_stanza_enable and cfg_stanza_disable ;)
[06:47] <Keybuk> and look at cfg_stanza_description for the code you need inside
[06:47] <AlexExtreme> cool, thanks
[06:47] <Keybuk> (call nih_config_next_arg () to get the job name, then nih_config_skip_comment () to guarantee no more args and move to the next line)
[06:47] <AlexExtreme> i'll play with it tomorrow
[06:48] <Keybuk> did you think much about the default or multi-profile stuff?
[06:48] <AlexExtreme> not much, i've been quite busy this afternoon
[06:48] <AlexExtreme> had one of my machines drop dead, needed to fix it up
[06:49] <Keybuk> badness
[06:50] <AlexExtreme> brb, dinner