/srv/irclogs.ubuntu.com/2009/06/11/#upstart.txt

hadessKeybuk: around?10:39
hadessi have that event.d script for upstart: http://pastebin.com/m222f649a10:42
hadessbut it doesn't seem to do what it's supposed to, and i don't know how to turn on debug for upstart10:42
Keybukto answer your second not-quite-question first10:43
Keybukboot with --debug on the kernel command line10:43
hadessok, doesn't make for easy debug switching on an already started machine10:45
Keybuk0.3.x or 0.5.x ?10:46
Keybuktry "initctl log-priority debug"10:46
hadessupstart-0.3.9-24.fc11.x86_6410:47
hadessthough i'm trying to get something that'd run on both, and could stick upstream10:47
Keybuk0.3 and 0.5's job syntax isn't compatible10:47
Keybuk(nor will 0.10's be compatible with either)10:48
hadessok10:48
hadesswell, let's start with 0.3 then10:48
hadessdo i have the idea right for that script for 0.3?10:48
Keybukyes10:49
Keybukas long as something calls initctl emit fedora.bluetooth-adapter-{,not-}available10:49
hadessany idea why it wouldn't be working?10:49
Keybukit'll be started when an adapter is available10:49
Keybukand stopped when *either* an adapter is no longer available *or* the system is shutdown/entered into single user mode10:50
hadessi used "initctl emit --no-wait fedora.bluetooth-adapter-available"10:50
hadessin a udev helper10:50
Keybukok10:50
hadessand that bit works10:50
hadessas the helper also dumps junk into a temp file, and that got updated10:51
hadesscould bluetoothd forking as a daemon break things?10:52
Keybukyes10:52
Keybukupstart will think it has died10:52
hadessok, let's fix that already10:53
hadessexec bluetoothd --no-daemon10:53
Keybuksupervision of forking daemons is one of the major features of the upstart-nl branch10:53
hadessthat's not really a problem for me here though10:54
hadessnope, still not working10:56
hadessi wonder where the syslogd config lives these days10:57
hadessthere's a bug in my rules10:58
hadessthe helper uses udevadm to list devices, and obviously, when the rule is run, udev doesn't know about the device yet...10:59
hadessso it emits fedora.bluetooth-adapter-not-available all the time10:59
Keybukah11:08
hadessyou wouldn't happen to know how to defer that call slightly?11:10
Keybuknot on fedora11:11
hadessnotting also told me that i'd get into trouble getting the udev event real early with the root still r/o11:11
hadessi'll discuss those with kay11:12
hadessthanks for the help!11:12
Keybukyeah, udev runs when the root is still r/o11:14
hadessKeybuk: got it running, any ideas why it stops it straight away here: http://pastebin.com/m5cf62c70 ?11:27
Keybuk#11:28
KeybukJun 11 11:26:46 cookie init: bluez main process (4330) terminated with status 111:28
Keybukwhatever you're running is exiting11:28
hadessweird, not sure why it would be11:30
hadessi'm an idiot :)11:30
sorenKeybuk: I'm not sure I understand your comment on bug 372864. Will there be a better mechanism for doing this in the Karmic cycle?11:31
hadessKeybuk: awesome, working :)11:31
Keybuksoren: definitely11:32
Keybuksoren: though it may be quite late in the karmic cycle, like in the next one ;)11:32
sorenKeybuk: ah  :)11:32
Keybukbut certainly not worth trying to come up with an upstart-y way of doing it now, if I'm doing a ground-up rewrite/redesign of Upstart ;)11:32
Keybukabout the point you get it working, I'll break it again11:32
sorenKeybuk: So if I need that console to be there for the Karmic release, what do I do?11:33
sorenCry?11:34
soren:)11:34
Keybuksoren: how would you do it in sysvinit?11:35
Keybukcreate the file in a postinst depending on how being installed?11:35
sorenKeybuk: I was hoping not to have to do anything like that.11:36
sorenKeybuk: So far, I've managed to not have to special case anything for kvm based virtual machines.11:36
sorenIn the sense of installing additional packages to make stuff work, that is.11:37
sorenI'd really, really like to keep it that way.11:37
sorenI don't know how I'd have done it in the old days with plain old sysvinit.11:37
* soren contemplates a udev rule that installs the job description in /etc/event.d when the hvc0 device pops up11:40
soren(only joking)11:41
Keybukfilesystem is read-only when your rule is run11:42
sorenAnother cunning plan foiled by pesky reality. Darn it.11:43
cubicoolIs it possible for an upstart job to grab control of the init process and demand some input before continuing? (In my case, insisting a password is entered to decrypt a filesystem)22:36

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