From 23cab66f83f067fc9faf4862d9fcfb81165e88e9 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 26 May 2019 15:51:35 -0600 Subject: [PATCH] Fix supervisor stopping issue --- authserver/README.md | 3 ++- webserver/README.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/authserver/README.md b/authserver/README.md index 99b4a1f..47fcedc 100644 --- a/authserver/README.md +++ b/authserver/README.md @@ -36,7 +36,8 @@ Create a file named /etc/supervisor/conf.d/authserver.conf and add: [program:authserver] user=tanner directory=/opt/pslockout/pslockout/authserver -command=/bin/bash -c 'source env/bin/activate && python manage.py runserver 0.0.0.0:8000' +command=/opt/pslockout/pslockout/authserver/env/bin/python manage.py runserver 0.0.0.0:8000 +stopasgroup=true autostart=true autorestart=true stderr_logfile=/var/log/authserver.log diff --git a/webserver/README.md b/webserver/README.md index b7fed28..fb944b0 100644 --- a/webserver/README.md +++ b/webserver/README.md @@ -18,7 +18,8 @@ Create a file named /etc/supervisor/conf.d/webserver.conf and add: [program:webserver] user=tanner directory=/opt/pslockout/pslockout/webserver -command=/bin/bash -c 'yarn start' +command=yarn start +stopasgroup=true autostart=true autorestart=true stderr_logfile=/var/log/webserver.log