/srv/irclogs.ubuntu.com/2009/04/23/#upstart.txt

=== Keybuk_ is now known as Keybuk
temotoUpstart runs all "start on runlevel 2" scripts in paralel?22:36
damjanyes22:38
Zeqadiousdamjan: you ever get around to toying with those arch upstart scripts?22:40
damjanZeqadious: I've made my first successfull boot of Upstart on ArchLinux22:40
Zeqadiousah22:41
damjanI'm starting /etc/rc.sysinit and rc.multi now22:41
Zeqadiousi know you were interested in 0.5 versions: http://zeqadious.homelinux.net/junkbin/upstart-0.5.1-jobs/22:41
Zeqadiousif it helps22:41
damjanso that I'm compatible with Arch as it is22:41
Zeqadiousagain based directly from Arch22:41
temotodamjan: that's awesome, thank you.22:42
damjanZeqadious: I also made a multi-instance agetty script22:42
Zeqadiousdamjan: i would interested in seeing that :)22:43
damjanso basically, instead of having a separate script for each tty22:43
Zeqadiousi tried to write a arch stype stat_busy stat_done stuff for upstart, but its quite flakey22:43
Zeqadiousoh thats cool22:43
temotostart on stopped sysinit/kernel-logger RESULT=ok       <- how does it work?22:44
damjanI have one,  instance $TTY; exec /sbin/agetty -8 38400 $TTY linux22:44
damjanZeqadious: and I have another script that starts all of the instances when rc.multi is stopped22:45
damjantemoto: sysinit/kernel-logger is a job22:45
temotodamjan: sorry, i mean "RESULT=ok"22:45
damjanwhen it's stopped (i.e. successfully run) your other script will run then22:45
Zeqadiousif kernel-logger exits with status=1 it won't22:45
temotoexitcode?22:46
damjantemoto: each Unix process has a return value22:46
temotoaha22:46
damjanyeah like ecitcode22:46
temotothanks, now i get it22:46
temotoerrorlevel on windows22:46
iamthelostboyhi.. i have a upstart job getting started by an application emitting an event.. it is mostly working, except that upstart isnt terminating as I would expect.. i have cut the job down to a single 'exec xinit <app> <params>'22:46
temotoRESULT=ok and RESULT=0 is same?22:47
damjanZeqadious: http://www.netsplit.com/2008/04/19/upstart-05-job-lifetime/ .. about instances22:47
temotoMy ubuntu 9.04 has upstart 0.3.9 .. wow, i did expect something newer.22:48
Zeqadiousdamjan: nice stuff22:48
temotodamjan: are you developer of upstart?22:49
damjantemoto: no22:49
damjanfar from it :)22:50
Zeqadiousthats Scott's blog22:50
damjanZeqadious: so these jobs you have, this is a port from rc.sysinit right?22:50
Zeqadiousyes22:51
damjank22:51
Zeqadiousi have upstart job scripts for dbus, acpid, hal, networkmanager, crond, and syslog-ng too22:51
Zeqadiousso far*22:51
Zeqadiousthey are ... problematic22:51
temotoI have two for memcacheq and mongodb :)22:52
temotoZeqadious: what's problematic in crond or syslog?22:53
Zeqadioustemoto: those seem to work 100%, however the others tend to not honor the start on stanza rules22:53
temotoZeqadious: you mean tens of "and stopped" ?22:54
Zeqadiousdamjan: here is my 'current in use scripts' however they aren't quite compatable with Arch Linux anymore.  But please feal to free to steal if you like anything http://zeqadious.homelinux.net/zizzy-linux/i686/abs/core/upstart-jobs/22:54
damjanI need to do the shutdown part... couldn't find much documentation about it for Upstart22:57
Zeqadiousi have problems because my data partition is always in use and can't be unmounted22:58
Zeqadiouslol22:58
Zeqadiousthe command 'reboot' works 100%22:58
Zeqadiousctrl+alt+delete 0%22:58
temotoSo on ubuntu using upstart 0.3.9 i can create directories, not only job files? upstart runs like /etc/event.d/*/* ?22:59
damjanyes22:59
temotocool22:59
temotostart on RESULT=failed    now what this mean?22:59
damjanwhen exitcode is not 022:59
temotoRESULT of what?22:59
Zeqadiousanything23:00
temotouh23:00
temotoany other upstart job?23:00
Zeqadiousyes23:00
temotoZeqadious: it's your jobs.d/sulogin23:00
Zeqadioustemoto: i'm aware23:01
temotohm.. if anything fails - sulogin.23:02
temotoWhat if /sbin is not mounted - then sulogin job fails and upstart runs another one?23:02
damjantemoto: if /sbin is not mounted, upstart will not start either23:03
Zeqadiouslol23:03
temotoright23:03
temotoBut what if /sbin would be unmounted after upstart starts?23:04
temoto..and anything fails23:04
Zeqadioussystem required boot files reside in /{bin,sbin,lib,etc} per fhs.  they are required to be there for boot.23:05
damjantemoto: upstart (and sysvinit) are /sbin/init, can't be umounted23:05
temotofs can't be unmounted while program started from it is running?23:06
Zeqadioustemoto: /usr, /var, and /home are often on other partitions however23:06
damjantemoto: yes, it can't23:07
temotohm.. all this start on stopped this and stopped that.. it's possible (and Zeqadious did) to build a complex dependancy tree.23:09
temotoBut it's very hard to see this dependancies with just browsing files.23:10
temotoThere must be some kind of sysv-rc-conf program to manage jobs via UI.23:10
damjanyeah it can be hard to debug23:11
Zeqadiousas the dev's of most projects seem fond of saying, "patches welcome"23:11
Zeqadious:)23:11
damjana simple tool showing the dependency tree would be nice23:11
temotoso not yet?23:11
Zeqadioustemoto: not that i'm aware23:11
temotoi see23:11
Zeqadiousmy scripts certainly aren't 100% yet anyway. closer to 70% and rough.23:12
Zeqadiousthe status messages are very* problematic because of the parallel jobs :)23:12
temotoZeqadious: btw in one your job file i saw you put \ at the end of lines in 'start on' stanza. In other job i see no \.23:13
Zeqadioussee previous line.23:13
temotoZeqadious: so that's syntax error?23:14
Zeqadioustechnically yes, but it will still work.23:14
temotoerh..?23:15
temotoI think they 100% must not require \, that would make jobs readable.23:15
Zeqadiousdamjan: do you happen to know if the environment jobs run in is 100% posix compliant (eg. dash) or the regular 100% posix based (eg. bash)?23:21
Zeqadiousdamjan: i get the feeling from working on this for a while that its probably /bin/sh23:21
damjanI don't know23:22
Zeqadiousoh well23:22
temotoZeqadious: > script instead gives shell script code that will be executed using /bin/sh23:22
damjanI think I've read somewhere about the implementation of script, but that was long time ago23:22
temotohttp://upstart.ubuntu.com/getting-started.html23:22
Zeqadiousat least for version 0.3.9 anyway23:24
Zeqadiousprobably still the same however. 23:24
damjanpaths.h:#define SHELL "/bin/sh"23:25
Zeqadiousnice23:25

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