Skip to content
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

Commit 3ccdbd3

Browse files
committed
dev
1 parent e1ba13c commit 3ccdbd3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎moduleab.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ function start(){
2020
}
2121

2222
function stop(){
23+
PPID=`cat /proc/$(cat $PIDFILE)/status|grep PPid|awk '{print $2}'`
24+
if [ '1' != "$PPID" ];then
25+
kill $PPID
26+
fi
2327
kill `cat $PIDFILE`
2428
echo "ModuleAB Agent Stopped."
2529
}

0 commit comments

Comments
 (0)