[00:15] Hrm.. the runlevel man page says that the environment variable 'RUNLEVEL' will be set .. "during boot" .. but it seems that its not always set on every event. [00:21] SpamapS: it is only set for sysv init scripts afaik [00:23] or for jobs triggered on the runlevel event [00:24] mbiebl: right, I suppose its a readily accessible global variable, so its not that important. ;) [00:26] I do wonder if there's a way in pre-start to determine what event caused me to start. I need to only start on started portmap when runlevel != [016] [00:26] I think it's set after telinit is run for the first time [00:29] which happens in rc-sysinit [00:30] so its probably set in the scripts.. [00:30] but not on the events [00:32] /etc/init/tty1.conf:start on stopped rc RUNLEVEL=[2345] [00:32] Hmm.. ok so if that works.. [00:36] maybe have to export RUNLEVEL [01:25] so yeah, I'm confused. if I add 'export RUNLEVEL' to portmap.conf .. and set it explicitly in the pre-start, main script, or post-start .. its still not matching 'start on started portmap RUNLEVEL=x' [01:26] even when I just do export FOO and use that.. no dice. I guess I'm not understanding how export works. :-/ [11:44] could someone help me with an ruby + upstart problem [11:44] my exec doesn't work, the rb file it executes can't find a required file [11:45] I've changed the PATH with the current gems folder [12:27] guys I'm using start program = "su - user -c 'path'" [12:27] but I'm getting a Error: Could not execute su [12:30] is su in your $PATH ? [12:33] changed it to /bin/su and now it's working [12:38] interesting, have you set $PATH in your kernel command-line or job environment? [12:38] or is there a different su earlier in your $PATH ? [12:38] e.g. a /usr/local/su [12:52] Keybuk: I'm a newb, this is my PATH [12:52] .. /home/sysadmin/local/bin:/home/sysadmin/.rvm/gems/ruby-1.9.2-p0/bin:/home/sysadmin/.rvm/gems/ruby-1.9.2-p0@global/bin:/home/sysadmin/.rvm/rubies/ruby-1.9.2-p0/bin:/home/sysadmin/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games [12:52] maybe it's because of RVM? I haven't changed anything but the settings for rvm in my .bashrc [13:05] yeah, it's entirely possible you have an extra su in your path there then [13:05] so just use exec /bin/su [13:05] :p [13:14] ;p === Will| is now known as Will|override [18:04] I heard a rumor that there is a mailing list at upstart.at .. but I couldn't find a link to it there.. help? [18:09] http://upstart.at/mailman/listinfo/upstart-devel [18:09] though I haven't really formally suggested anyone move off upstart-devel@lists.ubuntu.com yet === Will|override is now known as Will| [22:36] trying to decide [22:36] ww