/srv/irclogs.ubuntu.com/2009/02/03/#upstart.txt

iamthelostboyhello.. 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
iamthelostboydebootstrap of ubuntu03:14
iamthelostboyminimalist install03:14
sadmac_hmm. not my distro then03:14
iamthelostboybasically just ubuntu/debian03:14
sadmac_I'm the Fedora maintainer :(03:15
iamthelostboyoh..03:15
iamthelostboyok.. 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
iamthelostboycool.. 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 die03:19
sadmacwhat are you trying to accomplish?03:22
iamthelostboyour distribution goes onto machines which people have no idea how to operate linux03:24
iamthelostboyand we dont want to let them login anyway to ensure they dont mess with the system03:25
sadmacokay...03:25
iamthelostboythey have a few maintenance tasks which need to be taken care of occasionally03:25
iamthelostboyi have created a menu system using bash and dialog so they can choose the things they want to do03:26
iamthelostboylike calibrating the touch screen and installing .deb files or running .sh files from a usb key03:26
iamthelostboyanother option in the menu would be to actually start a terminal which would require login..03:26
iamthelostboywe 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 runs03:27
iamthelostboythe menu itself is actually working, and if i 'init 4' the menu will run03:27
iamthelostboyif i put 4 on the grub line, it stays in runlevel 203:27
iamthelostboyif 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 reboot03:28
iamthelostboyactually, they are dead from the moment i 'init 4', so i assume they wouldnt be there if i actually booted into runlevel 403:30
sadmacthat's not an upstart issue most likely03:30
sadmacthe grub cmdline not working is in the job definitions. not upstart specifically. The rest is general tty-foo03:30
iamthelostboyill keep looking :)03:32
iamthelostboythanks03:32
iamthelostboyit appears to be a ubuntu bug which has been in existence since early 2007..03:39
sadmachmm03:39
iamthelostboyrc-default is missing some critical stuff to figure out what runlevel was requested.. add a few lines of code and it will do it properly04:02
sadmacsend the patch to em04:02
iamthelostboyi got it from the bug report..04:04
iamthelostboyit was posted early 2007 and againlast year..04:04
iamthelostboymaybe one day they will put it into the distro04:05
sadmacone can only hope04:05
iamthelostboyit 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 limited04:05
iamthelostboythanks for your help :)04:06
sadmacnp04:06
keesjhi09:31
keesjsadmac: thanks for the kernel upgrade tip under 2.6.28 I can debug upstart using gdb10:19
keesj(under amr)10:19
sadmac2keesj: np15:44
* Keybuk arrives15:48
sadmac2Keybuk: what did you bring me?15:49
Keybuksnow15:49
sadmac2damnit15:50
sadmac2we just got rid of the last pile of that stuff15:50
KDeskKeybuk: Hi, are you planning to include upstart 0.5 in Jaunty?16:20
Keybukno16:21
KDeskKeybuk: ah, then are you going to update upstart for 9.10?16:27
Keybukif 0.10 is ready by then (which is the plan)16:30
KDeskKeybuk: ah, ok, thanks for the info!16:32

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