diff --git a/proxmaster.service b/proxmaster.service index 4ad33bb..30c4510 100644 --- a/proxmaster.service +++ b/proxmaster.service @@ -7,7 +7,7 @@ After=network-online.target [Service] User=master Type=forking -ExecStart=/usr/bin/screen -dmS proxmaster /home/master/proxmaster/start.sh +ExecStart=/home/master/proxmaster/start.sh #ExecStop= TimeoutSec=30 Restart=on-failure diff --git a/start.sh b/start.sh index 81e6ef7..1e8cc4e 100755 --- a/start.sh +++ b/start.sh @@ -14,5 +14,7 @@ else touch ${LOG_FILE} fi +cd $DIR + #startuwsgi instance -uwsgi --logdate --ini config.ini +uwsgi --logdate --daemonize log/uwsgi.log --ini config.ini