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 exit.
--steve
On 8/30/14 at 9:41 PM, [email protected] (Aryeh Leib Taurog) pronounced:
You must also make sure that foo is not daemonizing itself,
or supervisor will not be able to stop or restart it.
<http://supervisord.org/subprocess.html#nondaemonizing-of-subprocesses>
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