Supervisor / initscripts

User-contributed OS init scripts for Supervisor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to start supervisor in current dir of the program

jackielihf opened this issue · comments

my program directory is like:
-- program/
---- app (binary file)
---- config/
---- supervisord.conf
---- ubuntu-supervisord.sh

app need to read several files in the 'config' directory.
the command in supervisord.conf is:
./app

the command following works fine :
$ supervisord -c supervisord.conf

so i set DAEMON_OPTS as '-c supervisord.conf'
BUT, i cannot start supervisord using ubuntu-supervisord.sh(ubuntu initscript)
it cannot find the .conf file. Then i set DAEMON_OPTS as /a/absolute/path/to/supervisord.conf, but it can't work too. It failed to find app or files in the 'config' directory.

How can i do? tks

Please ask questions about using Supervisor on our mailing list.