Create supervisord.conf
Browse files- supervisord.conf +57 -0
supervisord.conf
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[supervisord]
|
| 2 |
+
nodaemon=true
|
| 3 |
+
logfile=/var/log/supervisor/supervisord.log
|
| 4 |
+
pidfile=/var/run/supervisord.pid
|
| 5 |
+
|
| 6 |
+
[program:postgresql]
|
| 7 |
+
command=/usr/lib/postgresql/14/bin/postgres -D /var/lib/postgresql/14/main -c config_file=/etc/postgresql/14/main/postgresql.conf
|
| 8 |
+
user=postgres
|
| 9 |
+
autostart=true
|
| 10 |
+
autorestart=true
|
| 11 |
+
stderr_logfile=/var/log/supervisor/postgresql.err.log
|
| 12 |
+
stdout_logfile=/var/log/supervisor/postgresql.out.log
|
| 13 |
+
|
| 14 |
+
[program:maas-regiond]
|
| 15 |
+
command=/usr/bin/maas-regiond
|
| 16 |
+
user=maas
|
| 17 |
+
autostart=true
|
| 18 |
+
autorestart=true
|
| 19 |
+
stderr_logfile=/var/log/supervisor/maas-regiond.err.log
|
| 20 |
+
stdout_logfile=/var/log/supervisor/maas-regiond.out.log
|
| 21 |
+
|
| 22 |
+
[program:maas-rackd]
|
| 23 |
+
command=/usr/bin/maas-rackd
|
| 24 |
+
user=maas
|
| 25 |
+
autostart=true
|
| 26 |
+
autorestart=true
|
| 27 |
+
stderr_logfile=/var/log/supervisor/maas-rackd.err.log
|
| 28 |
+
stdout_logfile=/var/log/supervisor/maas-rackd.out.log
|
| 29 |
+
|
| 30 |
+
[program:nginx]
|
| 31 |
+
command=/usr/sbin/nginx -g "daemon off;"
|
| 32 |
+
autostart=true
|
| 33 |
+
autorestart=true
|
| 34 |
+
stderr_logfile=/var/log/supervisor/nginx.err.log
|
| 35 |
+
stdout_logfile=/var/log/supervisor/nginx.out.log
|
| 36 |
+
|
| 37 |
+
[program:openvswitch]
|
| 38 |
+
command=/usr/share/openvswitch/scripts/ovs-ctl start --system-id=random
|
| 39 |
+
autostart=true
|
| 40 |
+
autorestart=true
|
| 41 |
+
stderr_logfile=/var/log/supervisor/ovs.err.log
|
| 42 |
+
stdout_logfile=/var/log/supervisor/ovs.out.log
|
| 43 |
+
|
| 44 |
+
[program:virtual-gateway]
|
| 45 |
+
command=python3 /opt/scripts/virtual_gateway.py
|
| 46 |
+
autostart=true
|
| 47 |
+
autorestart=true
|
| 48 |
+
stderr_logfile=/var/log/supervisor/gateway.err.log
|
| 49 |
+
stdout_logfile=/var/log/supervisor/gateway.out.log
|
| 50 |
+
|
| 51 |
+
[program:web-interface]
|
| 52 |
+
command=gunicorn -w 4 -b 0.0.0.0:8080 app:app
|
| 53 |
+
directory=/opt/scripts
|
| 54 |
+
autostart=true
|
| 55 |
+
autorestart=true
|
| 56 |
+
stderr_logfile=/var/log/supervisor/web.err.log
|
| 57 |
+
stdout_logfile=/var/log/supervisor/web.out.log
|