How can I use an environment variable in a supervisord command? I tried:
flower --broker=$MYVAR
but it doesn't work (variable is not expanded), so I tried using an inline python script:
command=python -c "import os;os.system('flower --broker={0}'.format(os.environ['MYVAR']))"
The command above works, but then I'm unable to terminate the process using supervisorctl stop
...I get "stopped" back but the process is actually still running!
How can I solve my issue? (I don't want to put that parameter inline)
command=sh -c 'flower --broker="$MYVAR"'
– Schizophreniasubprocess.call(["echo", "$PATH"])
vs.subprocess.call("echo $PATH", shell=True)
– Schizophrenia