iamthelostboy | hello.. im new to upstart and trying to have a bash script run on startup instead of a tty.. for a start though, if i specify a runlevel on my grub line, it seems to be completely ignored.. | 03:13 |
---|---|---|
sadmac_ | iamthelostboy: distro? | 03:13 |
iamthelostboy | debootstrap of ubuntu | 03:14 |
iamthelostboy | minimalist install | 03:14 |
sadmac_ | hmm. not my distro then | 03:14 |
iamthelostboy | basically just ubuntu/debian | 03:14 |
sadmac_ | I'm the Fedora maintainer :( | 03:15 |
iamthelostboy | oh.. | 03:15 |
iamthelostboy | ok.. if i do want it to run a script, rather than a login prompt, I can just change the exec getty line in the rcX file to be the script? would that be the correct way to do it? | 03:16 |
sadmac_ | that would work. | 03:17 |
=== sadmac_ is now known as sadmac | ||
iamthelostboy | cool.. then if i wanted that script to be able to start a tty, and be returned to when that tty is exited? I added the same getty into my script, but when i exit from the tty, the system seems to pretty much die | 03:19 |
sadmac | what are you trying to accomplish? | 03:22 |
iamthelostboy | our distribution goes onto machines which people have no idea how to operate linux | 03:24 |
iamthelostboy | and we dont want to let them login anyway to ensure they dont mess with the system | 03:25 |
sadmac | okay... | 03:25 |
iamthelostboy | they have a few maintenance tasks which need to be taken care of occasionally | 03:25 |
iamthelostboy | i have created a menu system using bash and dialog so they can choose the things they want to do | 03:26 |
iamthelostboy | like calibrating the touch screen and installing .deb files or running .sh files from a usb key | 03:26 |
iamthelostboy | another option in the menu would be to actually start a terminal which would require login.. | 03:26 |
iamthelostboy | we will set grub up with a default item of starting our application, and an administration mode of a different run level in which this menu runs | 03:27 |
iamthelostboy | the menu itself is actually working, and if i 'init 4' the menu will run | 03:27 |
iamthelostboy | if i put 4 on the grub line, it stays in runlevel 2 | 03:27 |
iamthelostboy | if i init 4 into the menu, and go to the 'adminstration mode' which runs getty, it starts the console, and then if i 'exit' it logs out, but then doesnt go anywhere, and if I switch to another terminal, i have no keyboard access.. so i have to reboot | 03:28 |
iamthelostboy | actually, they are dead from the moment i 'init 4', so i assume they wouldnt be there if i actually booted into runlevel 4 | 03:30 |
sadmac | that's not an upstart issue most likely | 03:30 |
sadmac | the grub cmdline not working is in the job definitions. not upstart specifically. The rest is general tty-foo | 03:30 |
iamthelostboy | ill keep looking :) | 03:32 |
iamthelostboy | thanks | 03:32 |
iamthelostboy | it appears to be a ubuntu bug which has been in existence since early 2007.. | 03:39 |
sadmac | hmm | 03:39 |
iamthelostboy | rc-default is missing some critical stuff to figure out what runlevel was requested.. add a few lines of code and it will do it properly | 04:02 |
sadmac | send the patch to em | 04:02 |
iamthelostboy | i got it from the bug report.. | 04:04 |
iamthelostboy | it was posted early 2007 and againlast year.. | 04:04 |
iamthelostboy | maybe one day they will put it into the distro | 04:05 |
sadmac | one can only hope | 04:05 |
iamthelostboy | it took me a few minutes to figure out what it was actually doing, and why the default one wasnt working.. my bash knowledge is still pretty limited | 04:05 |
iamthelostboy | thanks for your help :) | 04:06 |
sadmac | np | 04:06 |
keesj | hi | 09:31 |
keesj | sadmac: thanks for the kernel upgrade tip under 2.6.28 I can debug upstart using gdb | 10:19 |
keesj | (under amr) | 10:19 |
sadmac2 | keesj: np | 15:44 |
* Keybuk arrives | 15:48 | |
sadmac2 | Keybuk: what did you bring me? | 15:49 |
Keybuk | snow | 15:49 |
sadmac2 | damnit | 15:50 |
sadmac2 | we just got rid of the last pile of that stuff | 15:50 |
KDesk | Keybuk: Hi, are you planning to include upstart 0.5 in Jaunty? | 16:20 |
Keybuk | no | 16:21 |
KDesk | Keybuk: ah, then are you going to update upstart for 9.10? | 16:27 |
Keybuk | if 0.10 is ready by then (which is the plan) | 16:30 |
KDesk | Keybuk: ah, ok, thanks for the info! | 16:32 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!