From 0119ab55c2a8141aa3d4c3212ea96df2a84870d9 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 1 Aug 2019 15:32:17 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index afa3d37d0..ef33f19aa 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -176,8 +176,7 @@ def initDreplace(): def status(): - data = public.execShell( - "ps -ef|grep nginx |grep -v grep | grep -v python | awk '{print $2}'") + data = public.execShell("ps -ef|grep nginx |grep -v grep | grep -v python | awk '{print $2}'") if data[0] == '': return 'stop' return 'start'