[00:15] <SpamapS> 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] <mbiebl> SpamapS: it is only set for sysv init scripts afaik
[00:23] <mbiebl> or for jobs triggered on the runlevel event
[00:24] <SpamapS> mbiebl: right, I suppose its a readily accessible global variable, so its not that important. ;)
[00:26] <SpamapS> 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] <JanC> I think it's set after telinit is run for the first time
[00:29] <JanC> which happens in rc-sysinit
[00:30] <SpamapS> so its probably set in the scripts..
[00:30] <SpamapS> but not on the events
[00:32] <SpamapS> /etc/init/tty1.conf:start on stopped rc RUNLEVEL=[2345]
[00:32] <SpamapS> Hmm.. ok so if that works..
[00:36] <SpamapS> maybe have to export RUNLEVEL
[01:25] <SpamapS> 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] <SpamapS> even when I just do export FOO and use that.. no dice. I guess I'm not understanding how export works. :-/
[11:44] <dewey_> could someone help me with an ruby + upstart problem
[11:44] <dewey_> my exec doesn't work, the rb file it executes can't find a required file
[11:45] <dewey_> I've changed the PATH with the current gems folder
[12:27] <dewey_> guys I'm using start program = "su - user -c 'path'"
[12:27] <dewey_> but I'm getting a Error: Could not execute su
[12:30] <Keybuk> is su in your $PATH ?
[12:33] <dewey_> changed it to /bin/su and now it's working
[12:38] <Keybuk> interesting, have you set $PATH in your kernel command-line or job environment?
[12:38] <Keybuk> or is there a different su earlier in your $PATH ?
[12:38] <Keybuk> e.g. a /usr/local/su
[12:52] <dewey_> Keybuk: I'm a newb, this is my PATH
[12:52] <dewey_> .. /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] <dewey_> maybe it's because of RVM? I haven't changed anything but the settings for rvm in my .bashrc
[13:05] <Keybuk> yeah, it's entirely possible you have an extra su in your path there then
[13:05] <Keybuk> so just use exec /bin/su
[13:05] <Keybuk> :p
[13:14] <dewey_> ;p
[18:04] <SpamapS> 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] <Keybuk> http://upstart.at/mailman/listinfo/upstart-devel
[18:09] <Keybuk> though I haven't really formally suggested anyone move off upstart-devel@lists.ubuntu.com yet
[22:36] <Keybuk> trying to decide
[22:36] <Keybuk> ww