/srv/irclogs.ubuntu.com/2007/03/23/#upstart.txt

=== AlexExtr` [n=AlexExtr@funny4chat.de] has joined #upstart
=== AlexExtreme [n=AlexExtr@frugalware/developer/AlexExtreme] has joined #upstart
=== cortana [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart
=== wasabi [n=wasabi@ubuntu/member/wasabi] has joined #upstart
=== wasabi [n=wasabi@ubuntu/member/wasabi] has joined #upstart
=== catid [n=catid@c-76-17-106-128.hsd1.ga.comcast.net] has joined #upstart
catidhello.. the respawn COMMAND syntax no longer works right?04:34
catidi'm trying to update my svscan script in event.d to work with Fiesty04:35
catidrespawn exec /command/svscanboot doesn't seem to do the trick04:35
catidwould someone please help me to craft this so upstart will do the right thing?04:36
catideh, just removing respawn from the line works..04:40
catidhaving it respawn would be nice though04:40
catidlater..04:41
=== j_ack [n=rudi@p508D82DC.dip0.t-ipconnect.de] has joined #upstart
=== AlexExtreme[T] [n=AlexExtr@88-105-235-60.dynamic.dsl.as9105.com] has joined #upstart
=== sadleder [n=sadleder@p50812330.dip0.t-ipconnect.de] has joined #upstart
=== cwillu [n=cwillu@71-17-156-221.sktn.hsdb.sasknet.sk.ca] has joined #upstart
cwilluis upstart broken'ish on edgy?09:44
=== cwillu breaks into tears
sadledercwillu: why do you think so?09:57
=== Md [i=md@freenode/staff/md] has joined #upstart
cwillumore likely my assumptions are off10:02
cwilluevents/jobs are run as root?10:02
cwilluI can't seem to get any output out of a script in an exec or respawn line;  I know the script runs because the process stays alive if I change the script to 'sleep 100m', but it seems like if I put anything else in there, it doesn't do anything.  It seems to work fine if I run it via sudo though10:03
cwilluah, no $HOME10:15
cwilluthis is why you don't do work at this hour10:15
cwilluwhile the drunks are still in the office (grr)10:15
sadlederhmm, was that the problem?10:19
=== asdaf [n=Ack@213-140-11-128.fastres.net] has joined #upstart
=== sadlede1 [n=sadleder@p50811a5f.dip0.t-ipconnect.de] has joined #upstart
sadlede1cwillu: could you resolve the problem?11:05
cwilluya, environment wasn't as I expected11:12
cwilluthere's still a udev glitch on edgy that I'm working around, but things are working11:12
sadlede1cwillu: ah, ok11:18
sadlede1cwillu: for what task are you using upstart on edgy?11:19
cwillumultiseat autoconfig;  udev to assign keyboards devices names corresponding to existing displays, and then triggering an upstart event to launch an evdev bridge from that device to the actual display11:20
cwilluthe idea being that a keyboard should be able to be unplugged, and a different one plugged in, and it'll get assigned to the display that's missing a keyboard11:20
sadlede1wow11:21
cwilluadditionally, if a display used a particular usb port before, it'll prefer to use a keyboard on that port again if available11:21
cwilluwhich makes the initial setup much easier:  don' t have to move keyboards around if they don't go to the right monitors when it's first set up, you can just swap the plugs11:22
cwillufrom there on in, as long as you don't unplug more than two keyboards at the same time, and then plug them into physically different ports, everything will work as expected11:23
cwilluimportant when somewhat computer illerate people will need to keep 5 keyboards pointing at the right 5 monitors :p11:23
cwillu(re:  said drunks)11:23
cwilluonly thing left is to selectively re-trigger the udev event for keyboards that are unassigned when a new display comes up11:24
cwilluI figure it should save us about $10,000 a year in electricity alone (16 less computers, better options for power savings on the ones that are left)11:26
sadlede1what is the system you are developing this for?11:27
cwilluphone order stations for a pizza shop11:27
cwillucurrently use a bunch of old machines, one per phone line11:27
sadlede1cwillu: sounds like a great project11:30
=== asdaf [n=Ack@213-140-11-128.fastres.net] has joined #upstart
sadlede1cwillu: so you have 5 graphic adapters?11:52
sadlede1in one machine?11:52
cwillu3 dual headed11:52
cwillualthough I'm planning on using cheaper singleheaded cards in other machines11:53
cwilluthere's another bit of magic to make this work on sharedfb displays :p11:53
=== cwillu [n=cwillu@71-17-156-221.sktn.hsdb.sasknet.sk.ca] has left #upstart []
=== Keybuk [n=scott@quest.netsplit.com] has joined #upstart
=== juergbi [n=juerg@80-219-17-102.dclient.hispeed.ch] has joined #upstart
=== sadlede1 [n=sadleder@p50811a5f.dip0.t-ipconnect.de] has left #upstart []
=== Keybuk reads another Linus vs GPL-3 interview with amusement
=== j_ack [n=rudi@p508d8637.dip0.t-ipconnect.de] has joined #upstart
_ionHeh04:19
Keybukwhat amuses me is mostly how many inches of column can be dedicated to a licence that doesn't even exist yet04:20
_ion:-)04:21
KeybukI've had maybe a dozen e-mails so far asking whether Upstart will be GPL-304:22
_ionHeh, that's interesting04:23
KeybukI just reply that I can't make any decision until I've read the final version of the licence, and until then it will definitely remain GPL-204:23
_ionThe source can be used under the terms of GPL-3 as well, as soon as it exists anyway.04:26
_ionunless you remove the "or (at your option) any later version" clause. :-)04:26
Keybuksure, I don't see a problem there04:26
Keybukthe FSF have always promised the GPL-3 will only be more restrictive04:27
_ionYeah04:27
Keybukit won't allow people to do things the GPL-2 prevents people from doing04:27
Keybukso someone has the option of modifying and/or distributing the source /under the terms/ of the later version04:27
Keybukthey don't have permission to *change* the terms, just follow the more restrictive ones04:27
_ionIndeed.04:27
Keybukand that permits the code being combined with GPL-3 code at a later date04:28
Keybukproviding the GPL-3 isn't bad, there's no problem there04:29
Keybukif there's real problems with it, I'll remove the clause :p04:29
_ionEtsivt etsivt etsivt etsivt etsivt etsivt etsivt.04:39
_ionThat translates roughly to "the private investigators, that search for the private investigators, search for the private investigators that search for the private investigators". :-)04:39
Keybuk?#04:40
_ionSomething akin to the http://en.wikipedia.org/wiki/Buffalo_buffalo_Buffalo_buffalo_buffalo_buffalo_Buffalo_buffalo thing :-)04:41
cortananice link05:18
=== cwillu [n=cwillu@71-17-156-221.sktn.hsdb.sasknet.sk.ca] has joined #upstart
cwilluwhat version of upstart supports arguments on events?05:52
Keybuk0.3.2 I think05:52
Keybuk0.3.8 is the current recommended version05:52
cwillu:/  edgy is runs 2.something I think05:53
cwilluno environment vars either, huh05:53
_ionFeisty will be released soon. :-)05:53
cwilluthis is true, which just means I have to take out whatever hack job I use to get this working this month when its release next month :p05:53
cwilluknow of any good hackjobs to do this?05:54
_ionWhat are you trying to do?05:54
cwilluI've got some udev stuff that maps keyboards to heads on a multi-seat system, but doesn't actually do the connection (just names them after the server that should use them)05:55
cwilluI've got another program that reads the keyboard and forwards the events via xtest05:55
cwilluI want to have that last program launched via upstart05:56
cwillu"initctl trigger kbd/added <device name>" is what I'm after05:57
cwillubut there may be anywhere from 1 to 12 heads, so I'd like to avoid making 12 upstart event definitions if possible05:58
Keybukyou want to use the current version of upstart, then05:59
cwilluthat's what I hear :)05:59
cwilludoes it work with edgy?05:59
=== cwillu is starting to appreciate the advantages of a lts build
_ionIt's probably easiest to grab the feisty source package and build it.06:00
_ionSo you get the 0.3.8-compatible Ubuntu jobs as well.06:01
cwillulet me rephrase:  has the job definition syntax changed enough to break edgy jobs?06:01
cwilluahh06:01
cwilluthis is becoming a bit of a beast;  already running fiesty versions of some udev scripts (by-path symlinks otherwise stopped being generated if I plugged in more than a couple keyboards), evince (didn't handle landscape printing in edgy), 06:02
_ionThere's always the possibility of upgrading to feisty already.06:04
=== cwillu thinks
cwillurunning it at home, true enough;  haven't run into any issues there06:05
cwilluthough come to think of it, I'm already going through the legwork to make sure the device name is constant, even if the physical keyboard for that display changes.  I could just poll the device06:06
cwilluwould make it an easy fix for fiesty at least06:13
cwilluis there a handy script to wait for a display to come up?  I can rip the code out of xinit, but if it already exists...06:24
_ionCan't you just use xinit directly?06:27
cwilluit doesn't really fit in very well with what I'm trying to do;  would work fine for the nested servers, but the master server, I don't want any window managers running, I don't want it to exit when the clients quit, and the list of clients is generated dynamically06:30
cwilluI already checked the xinit source code, it's just polling xopendisplay, so I'll probably just reimplement that06:31
cwilluI dunno; xinit just leaves a bad taste in my mouth06:32
cwilluand thus was born xpoll :p06:44
cwilluis there a trick to getting upstart to redetect /etc/event.d scripts under edgy?07:03
Keybukit does it by itself07:04
cwilluso I should be able to dump a one line "exec <some script>", and launch that job immediated via "start <filename in event.d>"?07:06
cwilluimmediately even07:06
Keybukyes07:06
cwillu'cause I can't :p07:07
Keybukoh07:07
cwillu"initctl: Unknown job: masterServer"07:07
Keybuk/etc/event.d/masterServer exists ?07:07
cwillucwillu@8th:/etc/event.d$ ls -l masterServer 07:07
cwillu-rw-r--r-- 1 root root 149 2007-03-23 12:05 masterServer07:07
Keybukcheck the syslog to make sure theres no parse error07:08
cwillunothing shows up in syslog, although I did have a couple hits on some other jobs I just tried07:08
Keybuktry opening it and saving it again :p07:09
Keybuk0.2 wasn't very good at this07:09
cwilluI'm noticing this :)07:09
cwilluokay, got something that time07:09
Keybukgnargh07:16
Keybukyet another "why doesn't upstart use yacc to parse its config files?" e-mail07:16
Keybuk1) because yacc does not generate parsers 07:17
=== AlexExtreme [n=AlexExtr@frugalware/developer/AlexExtreme] has joined #upstart
cortanait doesn't?07:22
Keybukno ... it generates a grammar reader07:25
Keybuke.g. you can tell bison07:25
Keybuk  expression: expression '+' expression07:25
Keybuk            | NUMBER07:25
Keybuk            ;07:26
Keybukbut you can't tell it how to extract NUMBER or '+' from a file, or where the whitespace goes, etc.07:26
cortanawell, is that not lex's job07:26
Keybukexactly07:26
Keybukthe correct question would be "why doesn't upstart use LEX/FLEX to parse its config files?"07:27
Keybuk:p07:27
cortanaok now i know i didn't totally misunderstand what they o :)07:27
cortanaexactly ;)07:27
Keybukyacc/bison aren't much use here, because the config grammar is simpler to deal with using a function table07:27
cortana & does it?07:27
Keybukno07:27
cortanabut then again lexing is piss easy07:27
cortanai'm surprised this is such an FAQ07:27
=== j_ack [n=rudi@p508d8637.dip0.t-ipconnect.de] has joined #upstart
=== Md [i=md@freenode/staff/md] has joined #upstart
=== mbiebl [n=michael@e180091094.adsl.alicedsl.de] has joined #upstart
=== cwillu [n=cwillu@71-17-156-221.sktn.hsdb.sasknet.sk.ca] has left #upstart []
=== mbiebl [n=michael@e180091094.adsl.alicedsl.de] has joined #upstart

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