/srv/irclogs.ubuntu.com/2008/01/11/#upstart.txt

joshkKeybuk: is there a way to force a rc script to run in the foreground?01:48
joshkexample: I'm installing a fully automated ubuntu on VMware and I have it so that rc.local triggers an installation of the vmware tools01:49
joshkbut upstart lets that run in the bg01:49
joshkso it just drops to a login prompt (I disable X for the installation as well)01:49
joshkand that's kind of awkward for users who will be wondering wtf is going on01:51
Keybukdefine foreground02:06
joshkKeybuk: i just want it to be the last thing the user sees in the init messages, and not go to a login prompt02:28
joshkeasy way to describe it is.. as if ubuntu was using sysvinit and i had put the same stub in rc.local02:28
joshkit would say "Please wait, installing tools" and not show the login prompt02:28
Gadihey, there, all!  I am trying to write an upstart script similar to control-alt-delete but for a different key-combo15:10
Gadiis there a way to do this?15:11
GadiI am unclear as to where c-a-d gets the actualy keystroke event from15:11
Keybukthe kernel15:16
Keybukit's specially handled15:16
Keybukwhen you press Ctrl-Alt-Del the kernel sents init SIGINT15:16
Gadiah15:16
Keybuk(and I think the only reason the kernel traps it is because it's an interrupt on a PC)15:17
Gadiis there anyway to implement the old inittab's kbrequest?15:17
Keybuk"on kbdrequest"15:17
Keybukthat's Alt-UpArrow, and support for it is likely compiled out of your kernel15:17
Gadi:(15:18
Gadireally?15:18
Gadidamn15:18
Gadiwell, I'm on gutsy15:18
Gadisotck kernel15:18
GadiI sppose its worth attempting15:19
Keybukwhat are you trying to do? :)15:19
Gadiexecute a command at the console based on alt-uparrow ;)15:19
Gadiis there a way to load a newly written upstart script (short of rebooting)15:20
Keybukthey load automatically15:23
Gadiah15:23
Gadithen, it doesnt quite work :)15:24
Keybukit doesn't?15:24
Keybukwhich bit?15:24
Keybukdoes "status JOBNAME" show anything?15:24
Gadistart on kbdrequest15:24
Keybukright, your kernel probably doesn't have kbdrequest support15:24
Gadiexec echo "Alt-Uparrow pressed"15:24
Gadiright15:24
Keybukdid you have "console output" in there too?15:24
Gadino15:25
Gadibefore exec?15:25
Keybukso where's that echo going to go? :)15:25
Gadi(sorry - upstart newbie :) )15:25
Gadistill doesnt work15:26
* Gadi wonders why kbdrequest was not compiled in 15:26
Gadiand whther to patch the kernel just for this :)15:26
Gadis/patch/recompile/15:27
Keybukhmm15:30
Keybuklooking at the kernel it's always compiled in15:30
KeybukI just can't figure out what key it's bound to15:30
Gadihmm15:34
Gadiah, maybe /etc/console/ is just not set right15:35
Keybukmaybe15:35
Keybukcheck for KeyboardSignal in your key map15:36
Gadihmm its there:  alt keycode 103 = KeyboardSignal15:38
Keybukand keycode 103 is set to?15:38
GadiUp15:39
Keybukshould work then15:39
Keybukif not, you're deep into the mysteries of the console15:39
* Keybuk has never got it to work15:39
Gadiheh, I used to do it all the time with inittab15:39
Gadion Dapper :P15:39
Gadipre-upstart15:40
Gadiu sure I dont need to reboot?15:40
* Gadi reboots for the heck of it15:40
Keybuktry upstart on dapper15:41
Keybukit doesn't work for me on sysvinit either15:41
Keybukwe changed the console layer a *lot* in edgy15:41
Keybuk(switched to using X keyboard maps)15:41
Gadiah15:48
Gadiok, I will play a bit15:48
Gadiotherwise, I'll workaround15:48
Gadithanks for guiding a poor newb15:48
ion_Phew. I finally got around to wiring my rack today. About fifty cables connected. :-)15:53

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