Update mw.service.tpl

This commit is contained in:
Mr Chen 2024-12-02 16:28:42 +08:00
parent e1ef876db1
commit 46d7f83cc4
1 changed files with 2 additions and 2 deletions

View File

@ -4,9 +4,9 @@ After=network.target
[Service]
Type=simple
WorkingDirectory={$SERVER_PATH}/web
WorkingDirectory={$SERVER_PATH}
EnvironmentFile={$SERVER_PATH}/scripts/init.d/service.sh
ExecStart=gunicorn -c setting.py app:app
ExecStart=cd web && gunicorn -c setting.py app:app
ExecStop=kill -HUP $MAINID
ExecReload=kill -HUP $MAINID
KillMode=process