=== Will| is now known as great [10:27] hi, i have just added upstart to ptxdist. The problem is that dbus is running but not responing to any connection any more?! I only change the init method... [14:55] hey guys, im having issues with writing an upstart script for nginx, nginx starts up fine, but the pid upstart gets for nginx is wrong and so i can't stop or restart it [15:08] Did you try "expect daemon"? [15:08] pgmcgee: ^ [15:09] pgmcgee: See the init(5) man page for details. [15:10] pgmcgee: Ah, make that "expect fork", apparantly: [15:10] http://cyruslopez.net/writing/upstart.html [15:14] soren: i did try expect fork... hmm [15:15] Try expect daemon then. [15:15] * soren wanders off [15:16] soren: yep, trying that now [15:19] hmm.. on expect daemon, the start and stop commands just hang (don't give any output and don't exit) and nginx keeps running even on stop [16:05] sadmac: if i have one thing that does "stop on starting runlevel" and one thing that does "start on runlevel" [16:05] sadmac: the stop on starting runlevel job should be synchronously stopped before the start on runlevel job is run right? [16:05] halfline: runlevel is an event, not a job (in fedora's stack anyway) so there is no starting runlevel [16:06] sadmac: oh, there's no way to trigger on the edge before the level? [16:07] halfline: try working relative to the rc job rather than the runlevel event [16:07] sadmac: basically i need prefdm.conf to finish completely before runlevel 5's rc scripts start shutting down [16:07] halfline: start on starting rc [16:07] so you saying "stop on starting rc" ? [16:07] yeah [16:08] sadmac: so if i do that [16:08] sadmac: and then do "start on stopped prefdm" for a task [16:09] will that task get run synchronously before rc is run? [16:09] halfline: don't think so. start on stopping prefdm would do that though, but you'd run before prefdm [16:10] before prefdm stopped [16:10] is there a way to hook in after prefdm is stopped before rc is started? [16:11] can i put in my stopping script some sort of barrier? [16:11] initctl wait on prefdm stopped or something? [16:12] halfline: start on starting rc and stopped prefdm [16:12] halfline: you are tapping into overwhelming evil with that line but it should technically work [16:13] hmm i guess i need to filter that a bit though [16:13] start on starting rc RUNLEVEL=0 or RUNLEVEL=6 and stopped prefdm ? [16:13] right [16:14] well, wrong [16:14] i can just put an "or" like that? [16:14] start on starting rc RUNLEVEL=[06] and... [16:14] * halfline tries [16:18] hmm seems to just be sitting there instead of rebooting [16:19] hmm. [16:19] http://fpaste.org/mmVo/ [16:19] so prefdm seems to be caught up on stop on startng rc RUNLEVEL=5 [16:20] ohh [16:20] that should be stop on starting rc RUNLEVEL=[!5] [16:20] bingo [16:22] seems to work [16:22] thanks [16:44] sadmac: hmm [16:45] sadmac: so if i boot into runlevel 3 and type reboot things go awry [16:45] it's just sitting there [16:45] http://fpaste.org/SfYh/ [16:47] sadmac: could it be stop on starting rc RUNLEVEL=[!5] is cuasing problems if prefdm is already stopped? [16:47] (that line is in prefdm.conf) [16:48] halfline: no, should be fine [16:48] hmm if i do "start prefdm" [16:48] and then type reboot again [16:49] its the and line thats creating the problem when prefdm is already stopped [16:49] it reboots [16:49] halfline: I have to run out though. bbiab [16:49] k [21:48] Is hwclock startup script necessary for an Ubuntu system to boot? if my RTC is screwed (perhaps because of a dead CMOS battery), can I do 'update-rc.d -f hwclock remove' (and the same for hwclockfirst), install ntp, set it up, and reboot? [21:49] on hardy that is [22:18] JayT: that sounds like an Ubuntu question, and not an upstart question ;)