joshk | Keybuk: is there a way to force a rc script to run in the foreground? | 01:48 |
---|---|---|
joshk | example: I'm installing a fully automated ubuntu on VMware and I have it so that rc.local triggers an installation of the vmware tools | 01:49 |
joshk | but upstart lets that run in the bg | 01:49 |
joshk | so it just drops to a login prompt (I disable X for the installation as well) | 01:49 |
joshk | and that's kind of awkward for users who will be wondering wtf is going on | 01:51 |
Keybuk | define foreground | 02:06 |
joshk | Keybuk: i just want it to be the last thing the user sees in the init messages, and not go to a login prompt | 02:28 |
joshk | easy way to describe it is.. as if ubuntu was using sysvinit and i had put the same stub in rc.local | 02:28 |
joshk | it would say "Please wait, installing tools" and not show the login prompt | 02:28 |
Gadi | hey, there, all! I am trying to write an upstart script similar to control-alt-delete but for a different key-combo | 15:10 |
Gadi | is there a way to do this? | 15:11 |
Gadi | I am unclear as to where c-a-d gets the actualy keystroke event from | 15:11 |
Keybuk | the kernel | 15:16 |
Keybuk | it's specially handled | 15:16 |
Keybuk | when you press Ctrl-Alt-Del the kernel sents init SIGINT | 15:16 |
Gadi | ah | 15:16 |
Keybuk | (and I think the only reason the kernel traps it is because it's an interrupt on a PC) | 15:17 |
Gadi | is there anyway to implement the old inittab's kbrequest? | 15:17 |
Keybuk | "on kbdrequest" | 15:17 |
Keybuk | that's Alt-UpArrow, and support for it is likely compiled out of your kernel | 15:17 |
Gadi | :( | 15:18 |
Gadi | really? | 15:18 |
Gadi | damn | 15:18 |
Gadi | well, I'm on gutsy | 15:18 |
Gadi | sotck kernel | 15:18 |
Gadi | I sppose its worth attempting | 15:19 |
Keybuk | what are you trying to do? :) | 15:19 |
Gadi | execute a command at the console based on alt-uparrow ;) | 15:19 |
Gadi | is there a way to load a newly written upstart script (short of rebooting) | 15:20 |
Keybuk | they load automatically | 15:23 |
Gadi | ah | 15:23 |
Gadi | then, it doesnt quite work :) | 15:24 |
Keybuk | it doesn't? | 15:24 |
Keybuk | which bit? | 15:24 |
Keybuk | does "status JOBNAME" show anything? | 15:24 |
Gadi | start on kbdrequest | 15:24 |
Keybuk | right, your kernel probably doesn't have kbdrequest support | 15:24 |
Gadi | exec echo "Alt-Uparrow pressed" | 15:24 |
Gadi | right | 15:24 |
Keybuk | did you have "console output" in there too? | 15:24 |
Gadi | no | 15:25 |
Gadi | before exec? | 15:25 |
Keybuk | so where's that echo going to go? :) | 15:25 |
Gadi | (sorry - upstart newbie :) ) | 15:25 |
Gadi | still doesnt work | 15:26 |
* Gadi wonders why kbdrequest was not compiled in | 15:26 | |
Gadi | and whther to patch the kernel just for this :) | 15:26 |
Gadi | s/patch/recompile/ | 15:27 |
Keybuk | hmm | 15:30 |
Keybuk | looking at the kernel it's always compiled in | 15:30 |
Keybuk | I just can't figure out what key it's bound to | 15:30 |
Gadi | hmm | 15:34 |
Gadi | ah, maybe /etc/console/ is just not set right | 15:35 |
Keybuk | maybe | 15:35 |
Keybuk | check for KeyboardSignal in your key map | 15:36 |
Gadi | hmm its there: alt keycode 103 = KeyboardSignal | 15:38 |
Keybuk | and keycode 103 is set to? | 15:38 |
Gadi | Up | 15:39 |
Keybuk | should work then | 15:39 |
Keybuk | if not, you're deep into the mysteries of the console | 15:39 |
* Keybuk has never got it to work | 15:39 | |
Gadi | heh, I used to do it all the time with inittab | 15:39 |
Gadi | on Dapper :P | 15:39 |
Gadi | pre-upstart | 15:40 |
Gadi | u sure I dont need to reboot? | 15:40 |
* Gadi reboots for the heck of it | 15:40 | |
Keybuk | try upstart on dapper | 15:41 |
Keybuk | it doesn't work for me on sysvinit either | 15:41 |
Keybuk | we changed the console layer a *lot* in edgy | 15:41 |
Keybuk | (switched to using X keyboard maps) | 15:41 |
Gadi | ah | 15:48 |
Gadi | ok, I will play a bit | 15:48 |
Gadi | otherwise, I'll workaround | 15:48 |
Gadi | thanks for guiding a poor newb | 15: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!