[12:17] <einstein1969> hi
[12:17] <einstein1969> how to change level to single mode in ubuntu?
[15:21] <solj> hey everyone, i'm very new to upstart and trying to write a simple script that will run during startup; i have http://upstart.pastebin.com/m6f8fa569 working when run manually, but fails to start during startup
[15:21] <solj> this is on lucid
[15:23] <solj> i'm sure i'm missing something simple, but couldn't find the answer on the website
[15:37] <solj> is there an update-rc.d analog for upstart?
[17:25] <sadmac> solj: it looks right, but I'm betting it runs before the xserver
[17:26] <solj> sadmac: so, the init process will automatically look at any conf files in /etc/init?
[17:27] <sadmac> solj: it detects when they're modified and reloads them
[17:28] <solj> sadmac: hmm, it doesn't appear to run at all during startup :-/
[17:29] <sadmac> solj: no idea why. output should be suppressed if you're looking for evidence of it that way
[17:29] <solj> well, that command should configure xorg.conf for me (which it does when i do a 'service start <servicename>')
[17:29] <solj> just doesn't run during startup
[17:55] <JanC> solj: maybe it runs before something it needs is loaded and doesn't work because of that, or something like that?
[17:55] <JanC> (just guessing)
[17:56] <solj> yeah, i also tried changing it to run only during runlevel 5, but that didn't appear to help
[17:57] <solj> i guess i just need to figure out a way to debug it
[18:01] <JanC> well, you can add a simple command that writes something to a file before running nvidia-xconfig to make sure whether it gets started or not
[18:02] <JanC> or redirect nvidia-xconfig's output (stout & stderr) to a file?
[20:22] <solj> JanC: tried adding debug statements in there and get nothing
[20:22] <solj> so, it's definitely not running at boot
[20:38] <sadmac2> solj: they'll be hidden unless you explicitly direct them to /dev/console
[20:41] <solj> sadmac2: it's not being run; i'm going to try adding a boot option to run init with --debug
[20:41] <sadmac2> ok
[21:03] <solj> sadmac2: ok, i confirmed it's not being run; i do see it as having been registered previously
[21:03] <solj> so, i have no idea what to do to debug now
[21:04] <solj> since the only things logged when running init verbosely are those things which get started
[21:04] <sadmac2> solj: why do you need to rewrite xorg.conf on every boot btw?
[21:05] <sadmac2> solj: at any rate try making it start on foo and then use initctl emit foo to start it
[21:05] <solj> sadmac2: i don't; i wanted to get an upstart job running at boot so i can do something more interesting
[21:05] <sadmac2> solj: ah :)
[21:06] <sadmac2> solj: yeah, see if you can event-trigger it via another event
[21:06] <solj> k, i'll try that
[21:21] <solj> sadmac2: doing that works
[21:21] <sadmac2> solj: ok, so the startup event is the issue...
[21:22] <solj> i also tried doing the runlevel syntax
[21:22] <sadmac2> solj: you tried start on runlevel 5?
[21:22] <solj> let me try just 5
[21:22] <sadmac2> weird
[21:22] <solj> i think i had tried multiple ones before
[21:24] <solj> that didn't work either
[21:24] <solj> hmm.
[21:26] <solj> not sure if it helps any, but this is on lucid
[21:27] <solj> and grep emit /etc/init/* only returns http://upstart.pastebin.com/m66e3e86b
[21:33] <solj> sadmac2: got it to work :-/
[21:33] <solj> start on started tty1
[21:33] <sadmac2> solj: intriguing
[21:33] <sadmac2> solj: it should work as you had it I'd think
[21:35] <solj> sadmac2: that's what i thought
[21:35] <solj> sadmac2: anything i can do to test for you, let me know
[21:41] <sadmac2> solj: it'd be good to know if you see the startup event getting emitted during boot
[21:42] <solj> sadmac2: i'm not seeing it
[21:42]  * sadmac2 tries to remember if it was scrapped
[21:42] <sadmac2> solj: you'd need debug on to see it
[21:42] <sadmac2> solj: init=/sbin/init --verbose
[21:43] <solj> sadmac2: right, i already added that
[21:43] <sadmac2> solj: do you see the runlevel stuff?
[21:43] <solj> sadmac2: only numerous "Handling runlevel event" messages
[21:44] <solj> actually, it looks like one per boot
[21:44] <sadmac2> ok so the runlevel event should have worked I'd think
[21:44] <solj> sadmac2: i don't see any runlevel {1,2,3,...} being emited
[21:45] <solj> just the handling message
[21:45] <sadmac2> solj: yeah the event is just "runlevel"
[21:45] <sadmac2> the number would be an argument
[21:45] <solj> hmm, ok
[21:46] <sadmac2> ok fedora rcS.conf uses the startup event...
[21:46] <solj> lucid uses "start on runlevel S"
[21:47] <sadmac2> I don't know this lucid thing
[21:47] <solj> sadmac2: ubuntu lucid?
[21:47] <solj> karmic+1
[21:47] <sadmac2> solj: ah. heh :)
[21:47] <sadmac2> solj: I don't follow ubuntu.
[21:48] <sadmac2> as much as I should really
[21:48] <solj> ah, i see
[21:48] <sadmac2> Scott hasn't been around to clue me in either
[21:48] <solj> the main reason i'm trying this is because we are working on preparing a customized ubuntu distro which we use and would like to convert our init scripts to upstart if possible