I'm trying to move something into a docker container, which means a shift from running it as a daemon into a stand alone process controlled by supervisord. Now I don't have much experience with supervisord so it's likely a simple configuration error on my part.
The problem stems from that this application needs certain environment variables set. When running as a daemon I'd set them via a bash script
#!/bin/bash ORACLE_HOME=/home/oracle/app/ TNS_ADMIN=/home/oracle/app/network/admin export ORACLE_HOME TNS_ADMIN export LD_LIBRARY_PATH=$PATH:/home/oracle/app/lib ncftpd_authd
In supervisord.conf I set it up as
[program:authd] environment=ORACLE_HOME="/home/oracle/app/",TNS_ADMIN="/home/oracle/app/network/admin",export ORACLE_HOME TNS_ADMIN,export LD_LIBRARY_PATH="$PATH:/home/oracle/app/lib" command=/usr/local/sbin/ncftpd_authd stdout_events_enabled=true stderr_events_enabled=true
However if I call supervisord -c /etc/supervisord.conf I get an error
[root@0d7f9a5d7c3a src]# supervisord -c /etc/supervisord.conf Error: Unexpected end of key/value pairs
I believe it's related to environment line as if I comment that out supervisord will start (but the authd won't run). What am I doing wrong in setting up the environment in the supervisord conf file?