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 "/usr/local/foo foo": ENOENT
I also tried escaping the spaces, but with similar results.
directory=/usr/local/foo\ foo
supervisor: couldn't chdir to "/usr/local/foo foo": ENOENT
I don't think it's a permissions issue because 'foo' is the user
that owns the directory and has exec permissions.
--steve
On 8/30/14 at 9:27 PM, [email protected] (Aryeh Leib Taurog) pronounced:
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?
If that ain't possible, here's the problem I am trying to solve.
The binary program "foo" lacks documentation of how to start it
directly with the secret combination of correct flipped bits and
values. There are startup shell scripts available which set the
user, umask, and some environment variables (HOME, LC_ALL,
LD_LIBRARY_PATH), but every shell script changes the working
directory first, then invokes the command to start the binary:
./foo
When I try to start the binary with the fully qualified path through
Supervisor:
[program:foo]
command=/usr/local/directory/foo
umask=002
user=foo
environment=HOME="/usr/local/directory",LC_ALL="en_US", LD_LIBRARY_PATH="baz"
foo will start, but Supervisor cannot stop or restart it.
Any help would be immensely appreciated. Thank you!
--steve
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy Website Builder Soquel, CA
<[email protected]> <http://www.StevePiercy.com/>
_______________________________________________
Supervisor-users mailing list
[email protected]
https://lists.supervisord.org/mailman/listinfo/supervisor-users
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy Website Builder Soquel, CA
<[email protected]> <http://www.StevePiercy.com/>
_______________________________________________
Supervisor-users mailing list
[email protected]
https://lists.supervisord.org/mailman/listinfo/supervisor-users