From a4105406fc23fc6576c8d7643f5f992bcdbcecde Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 7 Aug 2019 17:09:05 +0800 Subject: [PATCH] Update go-fastdfs.tpl --- plugins/go-fastdfs/init.d/go-fastdfs.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/go-fastdfs/init.d/go-fastdfs.tpl b/plugins/go-fastdfs/init.d/go-fastdfs.tpl index e0dbf0040..ae3d83437 100644 --- a/plugins/go-fastdfs/init.d/go-fastdfs.tpl +++ b/plugins/go-fastdfs/init.d/go-fastdfs.tpl @@ -18,7 +18,7 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin gf_path={$SERVER_PATH}/go-fastdfs gf_start(){ -isStart=`ps -ef| grep -v python|grep -v bash |grep go-fastdfs | grep -v grep|awk '{print $2}'` +isStart=`ps -ef| grep -v python|grep -v bash |grep go-fastdfs |grep -v .jar | grep -v grep|awk '{print $2}'` if [ "$isStart" == '' ];then echo -e "Starting go-fastdfs... \c" cd $gf_path @@ -34,7 +34,7 @@ gf_stop() { echo -e "Stopping go-fastdfs... \c" - pids=$(ps -ef| grep -v python |grep -v bash |grep go-fastdfs| grep -v grep | awk '{print $2}') + pids=$(ps -ef| grep -v python |grep -v bash |grep go-fastdfs |grep -v .jar | grep -v grep | awk '{print $2}') arr=($pids) for p in ${arr[@]} @@ -46,7 +46,7 @@ gf_stop() gf_status() { - isStart=$(ps -ef | grep -v python | grep -v bash | grep go-fastdfs | grep -v grep | awk '{print $2}') + isStart=$(ps -ef | grep -v python | grep -v bash | grep go-fastdfs |grep -v .jar | grep -v grep | awk '{print $2}') if [ "$isStart" != '' ];then echo -e "\033[32mgo-fastdfs (pid $(echo $isStart)) already running\033[0m" else