From 31049ce9e5219b4dae207c6b460cf2b12a79771c Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 3 Jul 2022 22:02:17 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 5958f2c47..28c818722 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -174,7 +174,7 @@ def initDreplace(): confReplace() # systemd - systemDir = '/lib/systemd/system' + systemDir = '/usr/lib/systemd/system' systemService = systemDir + '/openresty.service' systemServiceTpl = getPluginDir() + '/init.d/openresty.service.tpl' if os.path.exists(systemDir) and not os.path.exists(systemService): @@ -188,7 +188,7 @@ def initDreplace(): def status(): data = mw.execShell( - "ps -ef|grep nginx |grep -v grep | grep -v python | awk '{print $2}'") + "ps -ef|grep openresty |grep -v grep | grep -v python | awk '{print $2}'") if data[0] == '': return 'stop' return 'start'