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