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]
|
||||
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
|
||||
|
|
4
start.sh
4
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
|
||||
|
|
Loading…
Reference in a new issue