try this:
[program:foo]
command=./foo
directory=/usr/local/directory
http://supervisord.org/configuration.html#program-x-section-example
On Fri, Aug 29, 2014 at 08:14:55PM -0700, Steve Piercy - Website Builder wrote:
Is there any way to change the working directory in a [program:foo]
stanza?
Thanks. I tried it, but there is a problem.
The startup script has this:
sudo -u foo ./foo
and the stdout log for the program has:
sudo: sorry, you must have a tty to run sudo
I don't know how to work around that.
--steve
On 8/30/14 at 10:14 AM, akfsu...@fullford.com pronounced:
I totally missed that in the docs. Thank you.
One more note, the directory has spaces in its name, so I used
around it.
[program:foo]
command=./foo
directory=/usr/local/foo foo
Then when reloading supervisord, the program's log file has this:
supervisor: couldn't chdir to
Yeah, I verified that it does not daemonize when I run:
sudo -u foo env
LD_LIBRARY_PATH=/usr/lib/jvm/jre/lib/amd64:/usr/lib/jvm/jre/lib/amd64/server:/usr/lib/jvm/jre/lib/i386:/usr/lib/jvm/jre/lib/i386/server
./foo
I have to provide a password to issue the command, and I have to
CTL-C to
I made a copy of the app's startup script, edited it and
commented out any stuff that requires interaction with a
password, and using your suggestion of 'exec'. Supervisor can
now start and stop the program. YAY!
Thank you for the help.
--steve
On 8/30/14 at 3:27 PM, w...@stevepiercy.com