From a9e24f8eafe39b862358a19926d0b81670686649 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 13 Oct 2022 00:58:05 +0800 Subject: [PATCH] Update ngx_debug.sh --- plugins/op_waf/t/ngx_debug.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/op_waf/t/ngx_debug.sh b/plugins/op_waf/t/ngx_debug.sh index c91d6bf52..06ca5eb56 100644 --- a/plugins/op_waf/t/ngx_debug.sh +++ b/plugins/op_waf/t/ngx_debug.sh @@ -1,13 +1,16 @@ #!/bin/sh + + # cd /www/server/mdserver-web/plugins/op_waf/t && sh ngx_debug.sh lua + if [ $# -ne 3 ] then echo "Usage: ./`basename $0` lua/c PID NAME" exit fi -pid=$2 -name=$3 +pid=`ps -ef|grep openresty | grep -v grep | awk '{print $2}'` +name=$2 if [ ! -d /opt/openresty-systemtap-toolkit ];then