/srv/irclogs.ubuntu.com/2009/08/20/#upstart.txt

keesjHi10:06
keesjI am trying to cross compile upstart, for that I would need the nih-dbus-tools to be compiled for the host target and not the target target. did anybody corss compile 0.6.3?10:13
HatrixKeybuk: hello keybuk, i was reading some time ago an email from yours where you explain that actually in septembre upstart will be in a state to act as a supervise daemon, is this right on track? As I have to make some decisions regarding a client and what I am going to use to daemon supervising, as I really HATE the djb supervise tool thingy i would LOVE to use upstart14:03
ionUpstart can already do that for simple cases.14:18
ionIt always has. It just hasn’t been ready for booting the entire system as Upstart jobs.14:18
Hatrixi can not use it for daemons which forks into the background  ... ?14:19
ion0.6 has somewhat working support for it, although 0.10 will do it much better.14:22
Hatrixhmmm, how do i use it for this forking daemons? i could not get it to work as as soon as the daemon forked, upstart did not now anything about it (state, pid, ...)14:28
plautrba_Hatrix: you can use expect stanza with daemon or fork, then proccess should be traced for forks by ptrace() 14:36
=== plautrba_ is now known as plautrba
Hatrixhmmmm14:41
Hatrixi did not know about the expect stanza, where is the docu for the current stanzas anyway, anyone knows? (besides of the source ...)14:41
KeybukHatrix: man 5 upstart14:42
Hatrixray@dev-01:~$ man 5 upstart14:42
HatrixNo manual entry for upstart in section 514:42
Hatrixhmm, seams in my debian upstart 06.2.1-1 package are no manpages ... hmmm14:43
Hatrixnope, section 5 missing ... ok, i'l grab the source, thanks 14:46
Keybukerr, man 5 init sorry14:47
ionWhich reminds me, i should finish my Upstart manpage changes and post a patch.14:48
sadmac2Keybuk: you're alive! er.. hi.14:49
Hatrixgot it now ... so expect daemon is if it's running from an init-script, and therefore forks twice and expect fork is a direct call to the daemon, am i right?14:49
Hatrixand, fearing being kicked of the channel, but, when will the 0.10 be useable, any ideas?14:50
ionkeybuk: Would you mind reformatting all the manpages with your editor (ctrl-meta-z-7-skull-and-crossbones-å-5 or whatever) and committing that change, so i can emulate the proper formatting in my changes?14:52
sadmac2ion: nobody spells it out like that. C-M-z-7-☠-å-514:54
ionAh14:54
ionForgive my lack of emacs-fu14:54
sadmac2ion: in vim its just :piratedance14:55
ionOne can come up with somewhat obscure things with vim, too. :-P 2006-06-02 17:16:13 < _ion> Vip:norm W"xyE$T_D"xp;gU$14:56
ionLooking at the IRC log, i typed the line "    normal = Gtk::STATE_NORMAL", duplicated it a few times, replacing normal with active, insensitive, prelight etc. and then wrote that command to replace the Gtk::STATE_* entries with the respective equivalents.14:58
=== robbiew-away is now known as robbiew
sadmac2ion: I can't make it work15:01
sadmac2where did you start?15:02
ionVip should “paint” the whole block first, then :norm should do the list of normal-mode commands for each selected line.15:02
sadmac2ion: that can't be right... maybe I need to be in C++ mode or it doesn't work.15:04
ionV should start selecting lines, and ip should select the current “paragraph”.15:04
sadmac2yep15:05
ionThen :norm applies to that selection15:05
sadmac2yep15:05
sadmac2and the results are borked15:05
ionDid you have the indentation? Without it, you need to drop the W15:05
sadmac2ah.15:06
sadmac2ion: this is what macros are for btw.15:07
sadmac2probably would have just typed out the inital words and then started with '<,'>s/.*/\0 = Gtk::STATE_\0/15:10
ionNot much difference between :norm and macros. The difference only starts to show when the changes are so complex you need to see them happening while typing the commands.15:10
sadmac2then gone about uppercasing15:10
sadmac2ion: for your method I probably would have had a macro to do it to one line then done :norm @q15:10
ionIn fact, you could have uppercased them within the expression. :s/.*/\0 = Gtk::STATE_\U\0/15:11
sadmac2oh that's right.15:11
ionBut that would have missed the15:12
ionsomethinglong = blah15:12
ionshort         = blah15:12
ionformatting :-P15:12
sadmac2not big on that anyway. I end up spending more time on whitespace than code.15:13
sadmac2ls15:39
sadmac2...well its been awhile since that's happened15:40
ionrm -fr ~15:42
sadmac2ion: ...you seem to be confused as to how this works15:42
wasabibyxnet.net19:30
wasabiOops19:30
=== mbiebl_ is now known as mbiebl
=== robbiew is now known as robbiew_away

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