From 46d7f83cc4fd70028dd601004635c70af27d43ff Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 2 Dec 2024 16:28:42 +0800 Subject: [PATCH] Update mw.service.tpl --- scripts/init.d/mw.service.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/init.d/mw.service.tpl b/scripts/init.d/mw.service.tpl index d43c41387..8c92d1214 100755 --- a/scripts/init.d/mw.service.tpl +++ b/scripts/init.d/mw.service.tpl @@ -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