From d29b2ac399545fb26299c4e817eb8dfaba57c193 Mon Sep 17 00:00:00 2001 From: jimmy201602 Date: Sun, 1 Sep 2019 22:35:51 +0800 Subject: [PATCH] update supervisor conf --- supervisord.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/supervisord.conf b/supervisord.conf index d057a95d..5c8386f0 100755 --- a/supervisord.conf +++ b/supervisord.conf @@ -141,7 +141,7 @@ serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket ;files = relative/directory/*.ini [program:web] directory=/opt/webterminal -command=daphne -b 0.0.0.0 -p 8000 webterminal.asgi:channel_layer --ws-protocol=guacamole +command=/usr/local/bin/daphne -b 0.0.0.0 -p 8000 webterminal.asgi:channel_layer --ws-protocol=guacamole autostart=true autorestart=true startsecs=3 @@ -150,7 +150,7 @@ stderr_logfile = /var/log/web/weberror.log stopasgroup=true [program:worker1] directory=/opt/webterminal -command=python manage.py runworker --threads=100 +command=/usr/bin/python3 manage.py runworker --threads=100 autostart=true autorestart=true startsecs=3 @@ -159,7 +159,7 @@ stderr_logfile = /var/log/web/workererror.log stopasgroup=true [program:worker2] directory=/opt/webterminal -command=python manage.py runworker --threads=100 +command=/usr/bin/python3 manage.py runworker --threads=100 autostart=true autorestart=true startsecs=3 @@ -168,7 +168,7 @@ stderr_logfile = /var/log/web/workererror.log stopasgroup=true [program:worker3] directory=/opt/webterminal -command=python manage.py runworker --threads=100 +command=/usr/bin/python3 manage.py runworker --threads=100 autostart=true autorestart=true startsecs=3 @@ -177,7 +177,7 @@ stderr_logfile = /var/log/web/workererror.log stopasgroup=true [program:worker4] directory=/opt/webterminal -command=python manage.py runworker --threads=100 +command=/usr/bin/python3 manage.py runworker --threads=100 autostart=true autorestart=true startsecs=3 @@ -186,7 +186,7 @@ stderr_logfile = /var/log/web/workererror.log stopasgroup=true [program:webterminalsshserver] directory=/opt/webterminal/webterminal -command=python sshserver.py +command=/usr/bin/python3 sshserver.py autostart=true autorestart=true startsecs=3