Update mw.service.tpl

pull/632/head
Mr Chen 5 months ago
parent e1ef876db1
commit 46d7f83cc4
  1. 4
      scripts/init.d/mw.service.tpl

@ -4,9 +4,9 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
WorkingDirectory={$SERVER_PATH}/web WorkingDirectory={$SERVER_PATH}
EnvironmentFile={$SERVER_PATH}/scripts/init.d/service.sh 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 ExecStop=kill -HUP $MAINID
ExecReload=kill -HUP $MAINID ExecReload=kill -HUP $MAINID
KillMode=process KillMode=process

Loading…
Cancel
Save