Spaces:
Running
Running
Update supervisord.conf
Browse files- supervisord.conf +18 -0
supervisord.conf
CHANGED
|
@@ -16,6 +16,21 @@ chmod=0700
|
|
| 16 |
[rpcinterface:supervisor]
|
| 17 |
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
[program:app]
|
| 20 |
command=python /app/websocket_hub.py
|
| 21 |
directory=/app
|
|
@@ -25,6 +40,7 @@ startsecs=5
|
|
| 25 |
startretries=10
|
| 26 |
stopasgroup=true
|
| 27 |
killasgroup=true
|
|
|
|
| 28 |
stdout_logfile=/dev/stdout
|
| 29 |
stdout_logfile_maxbytes=0
|
| 30 |
stderr_logfile=/dev/stderr
|
|
@@ -40,6 +56,7 @@ startsecs=5
|
|
| 40 |
startretries=10
|
| 41 |
stopasgroup=true
|
| 42 |
killasgroup=true
|
|
|
|
| 43 |
stdout_logfile=/dev/stdout
|
| 44 |
stdout_logfile_maxbytes=0
|
| 45 |
stderr_logfile=/dev/stderr
|
|
@@ -55,6 +72,7 @@ startsecs=5
|
|
| 55 |
startretries=10
|
| 56 |
stopasgroup=true
|
| 57 |
killasgroup=true
|
|
|
|
| 58 |
stdout_logfile=/dev/stdout
|
| 59 |
stdout_logfile_maxbytes=0
|
| 60 |
stderr_logfile=/dev/stderr
|
|
|
|
| 16 |
[rpcinterface:supervisor]
|
| 17 |
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
| 18 |
|
| 19 |
+
[program:patch]
|
| 20 |
+
command=python3 /app/patch_websocket_hub.py --target /app/websocket_hub.py
|
| 21 |
+
directory=/app
|
| 22 |
+
autostart=true
|
| 23 |
+
autorestart=false
|
| 24 |
+
startsecs=0
|
| 25 |
+
startretries=1
|
| 26 |
+
exitcodes=0,1
|
| 27 |
+
priority=1
|
| 28 |
+
stdout_logfile=/dev/stdout
|
| 29 |
+
stdout_logfile_maxbytes=0
|
| 30 |
+
stderr_logfile=/dev/stderr
|
| 31 |
+
stderr_logfile_maxbytes=0
|
| 32 |
+
environment=PYTHONUNBUFFERED=1
|
| 33 |
+
|
| 34 |
[program:app]
|
| 35 |
command=python /app/websocket_hub.py
|
| 36 |
directory=/app
|
|
|
|
| 40 |
startretries=10
|
| 41 |
stopasgroup=true
|
| 42 |
killasgroup=true
|
| 43 |
+
priority=10
|
| 44 |
stdout_logfile=/dev/stdout
|
| 45 |
stdout_logfile_maxbytes=0
|
| 46 |
stderr_logfile=/dev/stderr
|
|
|
|
| 56 |
startretries=10
|
| 57 |
stopasgroup=true
|
| 58 |
killasgroup=true
|
| 59 |
+
priority=20
|
| 60 |
stdout_logfile=/dev/stdout
|
| 61 |
stdout_logfile_maxbytes=0
|
| 62 |
stderr_logfile=/dev/stderr
|
|
|
|
| 72 |
startretries=10
|
| 73 |
stopasgroup=true
|
| 74 |
killasgroup=true
|
| 75 |
+
priority=20
|
| 76 |
stdout_logfile=/dev/stdout
|
| 77 |
stdout_logfile_maxbytes=0
|
| 78 |
stderr_logfile=/dev/stderr
|