/srv/irclogs.ubuntu.com/2007/02/08/#upstart.txt

=== _ion [i=johan@kiviniemi.name] has joined #upstart
KeybukX really doesn't like ioctl()s on its file descriptor03:07
=== j_ack [n=rudi@p508D9B93.dip0.t-ipconnect.de] has joined #upstart
Keybukwing-commander scott# cat /etc/event.d/test03:15
Keybukon wibble03:15
Keybukscript03:15
Keybuk        exit 103:15
Keybukend script03:15
Keybukwing-commander scott# initctl emit wibble03:15
Keybukwibble03:15
Keybuktest (start) waiting03:15
Keybuktest (start) starting03:15
Keybuktest (start) running, process 815503:15
Keybukinitctl: wibble event failed03:15
Keybukzsh: exit 1     initctl emit wibble03:15
Keybuk-- 03:15
Keybuksweeeet03:15
=== Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart
=== j_ack_ [n=rudi@p508DAD6C.dip0.t-ipconnect.de] has joined #upstart
=== wasabi_ [n=wasabi@ubuntu/member/wasabi] has joined #upstart
=== wasabi_ [n=wasabi@ubuntu/member/wasabi] has joined #upstart
=== AlexExtreme [n=AlexExtr@frugalware/developer/AlexExtreme] has joined #upstart
=== jonibo [n=jonas@213.212.2.215] has joined #upstart
=== Md [i=md@freenode/staff/md] has joined #upstart
=== baze [n=baze@c188040.adsl.hansenet.de] has joined #upstart
=== Keybuk [n=scott@quest.netsplit.com] has joined #upstart
Keybukwow, my laptop booted this morning *impressed*11:34
_ionOoh12:04
KeybukI'm finishing up merging the new state machine today12:10
_ionCool12:15
Keybukof course, I need to fix shutdown first12:17
=== pkt [n=knoppel@85.75.153.158] has joined #upstart
Keybukyay, fixed that01:57
KeybukCommitted revision 50002:24
Keybukwoo02:24
_ion\o/02:31
=== Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart
Keybukwing-commander scott# cat /etc/event.d/test02:51
Keybukstart on wibble02:51
Keybukscript02:51
Keybuk        sleep 502:51
Keybuk        exit 102:51
Keybukend script02:51
Keybukwing-commander scott# initctl emit wibble02:51
Keybukwibble02:51
Keybuktest (start) waiting02:51
Keybuktest (start) starting02:51
Keybuktest (start) running, process 294102:51
Keybuktest (stop) running02:51
Keybuktest (stop) stopping02:51
Keybukinitctl: wibble event failed02:51
Keybukzsh: exit 1     initctl emit wibble02:51
Keybukyay02:51
_ionWhee02:54
=== baze [n=baze@c157169.adsl.hansenet.de] has joined #upstart
=== mbiebl [n=michael@e180103239.adsl.alicedsl.de] has joined #upstart
=== phsdv [n=paul@dyn-88-123-133-34.ppp.tiscali.fr] has joined #upstart
=== mbiebl [n=michael@e180118088.adsl.alicedsl.de] has joined #upstart
AlexExtremeKeybuk, great job with the new features :) you asked for the link to the frugalware upstart repository, it's at http://ftp.frugalware.org/pub/other/people/alex/upstart07:23
AlexExtremealso if you want an icon for it like debian and ubuntu have there, just use the favicon here: http://frugalware.org/07:24
Keybukok, cool; thanks07:34
=== Seveas [n=seveas@ubuntu/member/seveas] has joined #upstart
=== |phsdv| [n=paul@dyn-83-152-233-224.ppp.tiscali.fr] has joined #upstart
=== juergbi [n=juerg@80-219-17-102.dclient.hispeed.ch] has joined #upstart
KeybukAlexExtreme: ok, linked09:48
AlexExtremethanks :)09:48
=== Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart
=== mbiebl [n=michael@e180118088.adsl.alicedsl.de] has joined #upstart
_ionkeybuk: Today's proposition for 'FOO': 'goal', as in 'goal frodo until bilbo', 'goal with multiuser', 'goal network-up until network-down and fhs-mounted until fhs-unmounted'10:58
Keybukheh11:09
Keybukwell11:21
Keybukthere goes the first of the old state machine ...11:21
Keybuk505 changed the enums11:21
=== j_ack [n=rudi@p508DA242.dip0.t-ipconnect.de] has joined #upstart
mbieblKeybuk: do you have a BNF of the job file format (or a detailed spec)?11:56
mbieblI wanted to write a syntax file for vim over the weekend.11:56
mbieblSo you get nice syntax highlighting on editing upstart job files ;-)11:58
KeybukI actually don't12:00
Keybukfeel free to write one based on the config code12:00
Keybuklet me quickly define it for you12:00
Keybukit's a line-based format; newlines end a stanza12:00
KeybukComments begin with '#' and run up to the next newline12:00
Keybukwhitespace chars are space, tab, \r and \n if inside quotes12:01
Keybuknewlines inside single or double quotes are ignored12:01
Keybuks/ignored/treated as whitespace/ sorry12:01
Keybuka slash may be used to cause a single or double quote to be treated as a plain character12:02
Keybukand a slash may also be used to treat a newline as a whitespace character12:02
Keybukso that's the basic format12:02
Keybukan argument is a token of characters up until the first comment, whitespace or newline character that's not quoted12:03
Keybukexamples12:03
Keybuk  foo12:03
Keybuk  bar12:03
Keybuk  "foo bar"12:03
Keybuk  foo\ bar12:03
Keybuk  foo\12:03
Keybuk  bar12:03
Keybuk(last two lines is one arg)12:03
Keybuk  "foo12:03
Keybuk   bar"12:03
Keybuk(likewise)12:03
Keybuk  foo#foo bar12:03
Keybuk(the token there is foo)12:03
Keybuka command is a token of characters up until the first comment or newline12:04
Keybukwhitespace is part of the command12:04
Keybukcommands are parsed according to shell rules (i.e. by running "sh -c $COMMAND" )12:04
Keybukthe only other special thing is a block12:04
Keybukthat begins on the line after the stanza, and is ended up the phrase "WS? end WS BLOCKTYPE WS? COMMENT? NL"12:05
Keybuksee init/cfgfile.c for the list of stanzas, and how each one parses what follows12:05
Keybuknext_arg eats one argument12:06
Keybukskip_comment eats a comment and the following newline12:06
Keybukparse_args eats all arguments to the end of the line12:06
Keybukparse_command eats the following command12:06
Keybuksome stanzas are more complex than others, expecting second-level words12:06
=== Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart
mbieblOk, thanks for the pointers.12:13
mbieblIt will be a bit hard to detect a upstart job file, because it doesn't have a special file extension or shebang.12:15
Keybukthey live in /etc/event.d :p12:16
Keybukeasy12:16
mbieblYeah, this is the metric I use already ;-)12:16
KeybukI don't like "extensions"12:18
Keybukyou end up with something silly like ".job"12:18
Keybukor12:21
Keybuk/etc/udev/rules.d/foo.rules12:21
Keybuk(or, worse)12:21
Keybuk/etc/udev/rules.d/foo-udev.rules12:21
MdKeybuk: did you add a regexp to ignore dot files, rpm/dpkg/emacs/vi backup files, etc?12:26

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