[supervisord] [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface [inet_http_server] port = 127.0.0.1:9001 username = user password = 123 [unix_http_server] file=%(here)s/../var/supervisor.sock ; the path to the socket file ;chmod=0700 ; socket file mode (default 0700) ;chown=nobody:nogroup ; socket file uid:gid owner ;username=user ; default is no username (open server) ;password=123 ; default is no password (open server) [supervisorctl] serverurl=unix://%(here)s/../var/supervisor.sock ; use a unix:// URL for a unix socket [program:simple1] ;command=python %(here)s/../bin/simple1.py command=gunicorn -w 4 -b 0.0.0.0:5000 bin.simple1:app directory=%(here)s/.. autorestart=yes startretries=3 stdout_logfile=%(here)s/../log/simple1.log redirect_stderr=true [program:simple2] command=gunicorn -w 4 -b 0.0.0.0:5001 bin.simple2:app directory=%(here)s/.. autorestart=yes startretries=3 stdout_logfile=%(here)s/../log/simple2.log redirect_stderr=true