From d2c75e3ed8862013bdd5e28b56964f717438b48c Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 11 Jul 2022 14:02:52 +0800 Subject: [PATCH] up --- class/core/mw.py | 2 +- plugins/openresty/index.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/class/core/mw.py b/class/core/mw.py index abc19e930..f2b9d0f78 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -92,7 +92,7 @@ def triggerTask(): def systemdCfgDir(): - cfg_dir = '/usr/lib/systemd/user' + cfg_dir = '/lib/systemd/system' if os.path.exists(cfg_dir): return cfg_dir return "/usr/lib/systemd/system" diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 05ef5a4a6..1e7216495 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -174,6 +174,7 @@ def initDreplace(): confReplace() # systemd + # /usr/lib/systemd/system systemDir = mw.systemdCfgDir() systemService = systemDir + '/openresty.service' systemServiceTpl = getPluginDir() + '/init.d/openresty.service.tpl'