Suppose I have two programs in a supervisor. Is there a way to run the first program (background process) conditionally without moving it to a separate script file?
[supervisord] nodaemon=true logfile=/tmp/supervisord.log #Need this program to run conditionally - say based off an environment variable being set [program:prog1] command=/bin/prog1 [program:prog2] command=/bin/prog2 -DFOREGROUND
source share