@ -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"
@ -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'