/srv/irclogs.ubuntu.com/2007/06/27/#upstart.txt

=== tck_ [n=tck@212.2.165.61] has joined #upstart
=== tck [n=tck@212.2.165.61] has joined #upstart
=== Amaranth_ [n=travis@ubuntu/member/Amaranth] has joined #upstart
=== jonib1 [n=jonas@ua-83-227-144-18.cust.bredbandsbolaget.se] has joined #upstart
=== juergbi [n=juerg@80-219-19-183.dclient.hispeed.ch] has joined #upstart
=== Md [i=md@freenode/staff/md] has joined #upstart
=== Keybuk [n=scott@quest.netsplit.com] has joined #upstart
=== sadleder [n=sadleder@p50814476.dip0.t-ipconnect.de] has joined #upstart
=== sadleder [n=sadleder@p50814476.dip0.t-ipconnect.de] has left #upstart []
=== jk44 [n=laugeai@fe2adsl-2.wyplay.net] has joined #upstart
jk44hi, i have noticed a possible bug in upstart11:18
jk44i wrote this job :11:19
jk44console output11:19
jk44pre-start script11:19
jk44echo "**UPSTART : ************* launching RCS ********** "11:19
jk44end script11:19
jk44script11:19
jk44echo "avant exec"11:19
jk44exec /etc/init.d/rcS11:19
jk44echo "apres exec"11:19
jk44end script11:19
jk44post-start script11:19
jk44echo "will try to launch runlevel 3"11:19
jk44echo "done rlv 3"11:19
jk4411:19
jk44echo "gona launch rcS"11:19
jk44end script11:19
jk44and post start is executed before exec script11:19
Keybukincorrect11:20
Keybukpost start is executed alongside the exec script11:20
jk44ok, it explain what i get11:21
Keybukwhich wins is dependant on such matters as your kernel, and possibly the one that outputs first is running second, and it's the console buffer that's fooling you11:21
Keybukpost-start makes most sense when the process run by exec is not immediately redy11:21
Keybukyou can use the post-start script to poll the daemon until it's accepting connections11:21
Keybukthe job won't be marked running until the post-start script exits11:22
jk44ok, thk very much11:22
jk44another dub question :11:22
jk44when a job fail starting, how can i recover, (as it has not failed)11:23
jk44and start the other jobs ?11:23
jk44is "started failed or started"11:23
jk44the solution ?11:23
jk44i am trying that, but quite unsuccessfully11:24
Keybukstart on stopped JOB failed11:29
Keybukthe stopped event for the job will include the argument "failed", and will include arguments and environment saying what failed, etc.11:30
Keybukhttp://upstart.ubuntu.com/wiki/JobFailedEvent11:30
Keybuk^ see that11:30
Keybuke.g.11:30
Keybukstopped apache failed11:30
Keybuk  EXIT_SIGNAL=SIGSEGV11:30
jk44ok, sorry for bothering with such uninterresting question ^^, i had not very well understood the doc (poor english :s)11:31
Keybukthat's ok11:34
Keybukthe docs aren't great yet11:34
=== phoenix24 [i=uaa@ns37986.ovh.net] has joined #upstart
=== phoenix24 [i=xzznc@ns37986.ovh.net] has joined #upstart
AlexExtremehmm02:38
AlexExtremethis is weird02:38
Keybukhmm?02:38
AlexExtremei've got some native jobs written for LFS02:39
AlexExtreme(just playing around)02:39
AlexExtremeit boots fine02:39
AlexExtremeapart from somewhere a bash syntax error gets printed02:39
AlexExtremeit says the syntax error is in /dev/fd/7 every time02:39
AlexExtremei can't figure out why02:40
Keybukheh02:40
Keybuk/dev/fd/7 is the name of the shell script upstart executes if it's > 1024k or so02:40
AlexExtremestrange02:41
Keybukwhy?02:42
AlexExtremei have no job even 2kb02:42
Keybukthat's a little more unusual02:42
Keybukoh, sorry, 1024 bytes02:42
Keybuknot K02:42
KeybukI always do that02:42
Keybuk1K02:42
AlexExtremeah02:42
AlexExtremethat limits it to 2 jobs02:42
Keybuk(the /dev/fd thing is because upstart makes a pipe on which it arranges the script to be executed; and that's the trick to passing it to sh as a file)02:44
AlexExtremek02:44
AlexExtremethe weird thing though, is that i get no "job failed" message from upstart02:44
Keybukpassing it on "standard input" would mean the script couldn't use exec < or things like that02:44
Keybukand passing it in the arguments could exceed available space02:44
AlexExtremeah, got it02:49
AlexExtremestupid type02:49
AlexExtreme*typo02:49
Keybukdunno why it doesn't fail02:50
Keybukmaybe you've got a set +e in there?  or an ||/&&, or it's part of an if, etc.02:50
AlexExtremeyeah, it was part of a ||02:51
=== phoenix24 [i=yjlbe@ns37986.ovh.net] has joined #upstart
=== phoenix24 [i=endggnc@ns37986.ovh.net] has joined #upstart
=== tale [n=tale@207.235.54.1] has joined #upstart
=== phoenix24_ [i=ellksfi@ns37986.ovh.net] has joined #upstart
=== tck [n=tck@212.2.165.61] has joined #upstart
=== mbiebl [n=michael@e180070166.adsl.alicedsl.de] has joined #upstart
=== phoenix24 [i=irpa@ns37986.ovh.net] has joined #upstart
=== phoenix24 [i=rurdx@ns37986.ovh.net] has joined #upstart
=== phoenix24 [i=zopyqic@ns37986.ovh.net] has joined #upstart
AlexExtremenow *that's* what i call optimization06:35
AlexExtremehttp://www.alex-smith.me.uk/files/bootchart-ud.png06:35
AlexExtreme:D06:35
ion_:-)06:37
taleAlexExtreme, I'm not an upstart expert, but that distro wouldn't do much, right?07:38
AlexExtremethe boot sequence does actually run more stuff, just it seems that bootchart missed some stuff07:39
AlexExtremecurrently it boots to a text-based multiuser system with networking and ssh07:39
taleah07:40
talewhat are some of the fastest boot times you guys are getting with the latest development code?07:40
AlexExtremethat is the fastest boot i have ever got with any init system07:41
talebut, what about a normal ubuntu install?07:44
AlexExtremei haven't tried with ubuntu, since i don't use it ;)07:44
talewhat distro do you use?07:44
taleI assumed ubuntu since most distros don't use upstart07:44
AlexExtremefrugalware atm07:45
=== phoenix24 [i=xgifj@ns37986.ovh.net] has joined #upstart
=== mbiebl [n=michael@e180070166.adsl.alicedsl.de] has joined #upstart
=== phoenix24_ [i=yjktn@ns37986.ovh.net] has joined #upstart
=== thom [n=thom@amnesiac.heapspace.net] has joined #upstart

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