/srv/irclogs.ubuntu.com/2007/07/19/#upstart.txt

=== wasabi [n=wasabi@ubuntu/member/wasabi] has joined #upstart
=== tck [n=tck@213-202-166-184.bas503.dsl.esat.net] has joined #upstart
=== Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart
=== Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart
=== twb [n=twb@CPE-144-133-82-155.vic.bigpond.net.au] has joined #upstart
twbDoes anyone know the status of upstart on Sid?07:53
twbRather, what is the status of upstart on Sid?07:54
=== Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart
=== JK456 [n=laugeai@fe2adsl-2.wyplay.net] has joined #upstart
JK456hi upstarters :)10:54
JK456i dont get how i can use the respawn system :10:54
JK456when i use it on a soft who forks, upstart dont see the son10:55
JK456and think the soft is dead, and respawn it10:55
twbI am not a regular here, but I believe the upstart position is that daemons that fork into the background are broken.10:56
twbWhat package are you having problems with?10:56
JK456some soft we wrote ourself10:56
JK456its a quite personalized system10:56
JK456but for exemple portmap daemon10:57
JK456it forks after launch10:57
twbAre you sure about that?10:57
JK456well i am gona check again10:57
twbI think upstart would say that portmap should be run with -d to prevent it disconnecting.10:58
JK456portmap forks, or if it doesn't it is restarted for no reason10:59
JK456-d ?11:00
JK456is it an upstart option ?11:00
twbOh sorry, -f is more appropriate.11:00
twbSee the portmap manual.11:00
twb"-f      (foreground) prevents portmap from running as a daemon, and causes log messages to be printed to the standard error output."11:00
JK456ok, its an option of portmap11:01
twbAs I said, I am not associated with upstart.11:01
twbBut I think they would advise you to add such an option to your program, too.11:01
JK456but it implies to modifie the code of all daemon in our system :s ^^11:01
JK456but your informations are very usefull :)11:02
JK456thanks a lot11:02
ion_One needs to add the daemon stanza to the job definition, but handling forking daemons isnt completely implemented yet.11:02
twbI'm afraid I can't help more; if you wait long enough a regular will stop by.11:02
JK456yep, i had the chance to talk them sometimes, freenode is great for that11:02
ion_The sole reason why Upstart needs to be pid 1 is that it can support forking daemons. Theres no upstart position that forking daemons are broken AFAIK.11:04
twbI apologize, I was clearly mistaken.11:04
twbPerhaps I am thinking of the cinit people11:05
JK456ion_ : oh ? how does it work ?11:05
JK456twb : no prob11:06
twbDoes upstart on ubuntu still just call out to sysvinit compat for just about everything except inittab?11:06
=== twb remembers to check https://launchpad.net/distros/ubuntu/+spec/replacement-initscripts
ion_Pid 1 receives the SIGCHLD for parentless processes. But handling it isnt implemented yet AFAIK.11:07
ion_twb: The sysvinit scripts havent been replaced with upstart jobs yet.11:07
twbDoesn't that mostly take away the real benefit of using upstart for regular users?11:08
JK456ion_ : if i understand well, i will be possible to restart forking daemon, but it is not yet possible ?11:09
ion_jk456: Yes, thats the current situation as far as i know.11:10
ion_twb: I dont see what you mean. The scripts will be converted to upstart gradually.11:11
twbI mean that the real appeal of upstart (at least to me) is reduced boot time as a result of aynchronous service startup.  If upstart currently just uses run-parts to launch everything in rcS.d and rcN.d, then none of those scripts will be launched asynchronously.11:12
JK456ok, and i guess it is not possible to use inittab respawn because there is only one process (the 1) receiving sigchild11:12
ion_twb: I think the major point of upstart is a flexible bootup process that Just Works where sysvinit scripts would fail unless horrible kluges are added to them. Reduced boot time is just a bonus.11:15
=== Md [i=md@freenode/staff/md] has joined #upstart
twbIn what way does it "Just Work" more than sysvinit?11:17
twbI mean, *right now* as opposed to after sysvinit scripts have been completely replaced11:17
JK456twb : if you seek for speed, you can test initng11:18
twbThat's the gentoo thing?11:18
JK456initng ?11:18
ion_Right now the system is booted by the sysvinit scripts.11:19
JK456initng : no i dont think i is for a specific distrib11:19
twbBut it's pioneered on gentoo, in the same way that upstart is on Ubuntu?11:19
JK456dont knwo, there is rpm and packages for lots of distrib 11:20
JK456ion_ : in my case, we builded a personalized init, we had 23 seconds at boot, we are at 511:21
twb"built"11:21
twbion_: I like their icon better than upstarts :P11:21
JK456(in init phase, there is also 15 seconds for hardware loading)11:22
JK456twb : but there is less features in initng11:22
JK456_ion : so thanks to upstart we won 18 seconds11:23
JK456(its linux embedded soft)11:23
=== Amaranth_ [n=travis@ubuntu/member/Amaranth] has joined #upstart
JK456twb : why dont you write your own scripts ?11:25
JK456it is not so so hard to do11:26
JK456    `-- rcS11:26
JK456        |-- S02mountvirtfs11:26
JK456        |-- S10checkroot.sh11:26
JK456        |-- S30checkfs.sh11:26
JK456        |-- S39ifupdown11:26
JK456        |   `-- S40networking11:26
JK456        |-- S40hostname.sh11:26
twbYes, it is.11:26
JK456        `-- S55urandom 11:26
twbIt is hard because I don't have millions of other Debian users helping me debug them.11:27
JK456on mountvirtfs, you launch the runlevel you want11:27
JK456    |-- rc311:27
JK456    |   |-- S00set-date11:27
JK456    |   |-- S02engine11:27
JK456    |   |-- S05sysfs11:27
JK456    |   |   `-- S06udev11:27
JK456    |   |-- S11messagebus11:27
JK456    |   |-- S65xinetd11:27
JK456    |   `-- S70lircd11:27
JK456thats the init profile we use (i removed the confidential parts)11:28
JK456twb : you just have to call the scripts in rcS.d and rcX.d11:28
JK456this scipts will do the job11:29
JK456so all your files in event.d will look like to this :11:31
JK456description     "test"11:31
JK456author          "jerry"11:31
JK456start on stopped mountvfs11:31
JK456console output11:31
JK456script11:31
JK456echo "portmap"11:31
JK456 exec /etc/rc.d/rcS.d/S41portmap start11:31
JK456echo "done"11:31
JK456end script11:31
twbPlease stop flooding.11:31
JK456^^ k11:32
JK456hope it helps11:32
twbEw, bootchart-view is written in Java.12:00
twbion_: have you looked at using LSB headers to programmatically convert sysv init scripts to upstart scripts?12:06
ion_Is there a LSB header for things like start when network is available, start when all partitions are mounted and writable, start when a sound card has been connected? If not, doing the conversion manually will yield much better results.12:08
twbYes.12:09
JK456i agree too12:10
twbI concede that it won't be perfect, but I wonder if it can save you a lot of grunt work, allowing you to focus on the second 90%12:10
JK456twb : we wrote it in a day 12:11
JK456the main part is to kwow the dependencies12:11
JK456after that you just call the sys scripts12:11
JK456or you copy them12:12
twbhttp://user.skolelinux.no/~pere/mypapers/200706-bootseq/200706-bootseq.html12:12
ion_Upstart doesnt exactly deal with dependencies, its the other way around.12:12
=== julo [n=julien@AToulouse-156-1-45-176.w90-16.abo.wanadoo.fr] has joined #upstart
julohi01:38
juloI have created an upstart script and it fails to start automatically: "unable to read: Invalid argument", but if I manually start it, it works well.01:39
juloAny idea ?01:39
julosalut02:10
juloj'ai un problme avec upstart: j'ai cr un script, et  l'amorage du  j'obtiens l'erreur "unable to read: Invalid argument" au lancement du script. Par contre, si je lance ce script  la main, a marche.02:10
=== julo [n=julien@AToulouse-156-1-45-176.w90-16.abo.wanadoo.fr] has left #upstart ["Ex-Chat"]
=== crazy [n=crazy@frugalware/developer/crazy] has joined #upstart
=== benmur [n=benmur@friends.sukria.net] has joined #upstart
=== tale [n=tale@207.235.54.1] has joined #upstart
=== tck [n=tck@213-202-166-184.bas503.dsl.esat.net] has joined #upstart
=== mbiebl [n=michael@p5B1333FD.dip0.t-ipconnect.de] has joined #upstart
=== mbiebl [n=michael@85.180.65.162] has joined #upstart
=== tck [n=tck@213-202-166-184.bas503.dsl.esat.net] has joined #upstart
=== tck_ [n=tck@213-202-166-184.bas503.dsl.esat.net] has joined #upstart
=== Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart

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