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'