redefine startup
This commit is contained in:
parent
363553bb7d
commit
fe7fbbd3ee
2 changed files with 4 additions and 2 deletions
|
@ -7,7 +7,7 @@ After=network-online.target
|
||||||
[Service]
|
[Service]
|
||||||
User=master
|
User=master
|
||||||
Type=forking
|
Type=forking
|
||||||
ExecStart=/usr/bin/screen -dmS proxmaster /home/master/proxmaster/start.sh
|
ExecStart=/home/master/proxmaster/start.sh
|
||||||
#ExecStop=
|
#ExecStop=
|
||||||
TimeoutSec=30
|
TimeoutSec=30
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
4
start.sh
4
start.sh
|
@ -14,5 +14,7 @@ else
|
||||||
touch ${LOG_FILE}
|
touch ${LOG_FILE}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd $DIR
|
||||||
|
|
||||||
#startuwsgi instance
|
#startuwsgi instance
|
||||||
uwsgi --logdate --ini config.ini
|
uwsgi --logdate --daemonize log/uwsgi.log --ini config.ini
|
||||||
|
|
Loading…
Reference in a new issue