[12:11] <qiyong> # status vsftpd
[12:11] <qiyong> vsftpd start/running
[12:11] <qiyong> is upstart's fault?
[12:12] <qiyong> the process id isn't shown and actually vsftpd doesn't start.
[12:51] <marianogg9> hi guys, does anyone know what this mean? "main process terminated with status 1" what does 1 mean?
[12:51] <marianogg9> I knew state 127 means an error
[13:02] <marianogg9> can anyone take a look at this script please? it'll exit with a 127 status https://gist.github.com/marianogg9/11371260
[13:08] <marrusl> marianogg9, on ubuntu at least, default shell is dash and it doesn't support "source"
[13:08] <marianogg9> marrusl: mine is centos
[13:08] <marrusl> marianogg9, use the env or export stanzas for variables
[13:08] <marrusl> still might not be bash
[13:09] <marrusl> 127 is command not found so it makes sense
[13:09] <marrusl> default system shell i should say, default user shell could be something else.
[13:09] <marrusl> http://upstart.ubuntu.com/cookbook/#job-environment
[13:09] <marianogg9> but..it does work typing it manually thougj
[13:10] <marianogg9> *though
[13:10] <marrusl> your shell is probably bash
[13:11] <marrusl> upstart uses /bin/sh what is that pointing to?
[13:11] <marianogg9> marrusl: bash
[13:13] <marianogg9> anyway..env is (at least in the example) for particular var definitions like PATH=value..I need to export a whole file 
[13:13] <marianogg9> marrusl: ^^
[13:17] <marrusl> marianogg9, not sure.  although bash can behave differently when invoked as /bin/sh.  you might get the same command-not-found if you run it manually and explicitly with /bin/sh instead of just executing it
[13:35] <marianogg9> marrusl: besides /bin/sh matter, do you know how to export a file.env?
[14:03] <jodh> marianogg9: I explained to you how to do that last Thurday. Did you read the links I sent explaining how to debug a job that does not run as expected?
[14:06] <marianogg9> jodh: oh..you're right, sorry
[14:31] <marianogg9> jodh: "+ rvm 2.0 /dev/fd/11: line 4: rvm: command not found"
[14:31] <marianogg9> looks like it cannot find "rvm" command?
[14:32] <marianogg9> I used "exec > /tmp/my_service.log 2>&1 set -x" in my script and got that error
[14:32] <jodh> marianogg9: in which case, you'll either need to specify the full path to that command, or add the directory to $PATH. The former is safer though.
[17:06] <marianogg9> jodh: is there a limit for the amount of var i can env/export ?
[17:40] <marianogg9> jodh: ^^
[23:09] <mgw>   irc://irc.freenode.net:6667/# invoke salt-minion via su so that /etc/environment is read
[23:09] <mgw>   exec su -c salt-minion
[23:09] <mgw> does that trick work on Trusty?