summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/components/log/scribed-client-stop
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/components/log/scribed-client-stop')
-rwxr-xr-xsca-cpp/trunk/components/log/scribed-client-stop6
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-cpp/trunk/components/log/scribed-client-stop b/sca-cpp/trunk/components/log/scribed-client-stop
index 0f9c409183..d6a6345f29 100755
--- a/sca-cpp/trunk/components/log/scribed-client-stop
+++ b/sca-cpp/trunk/components/log/scribed-client-stop
@@ -25,4 +25,8 @@ scribe_prefix=`cat $here/scribe.prefix`
thrift_prefix=`cat $here/thrift.prefix`
scribed="$scribe_prefix/bin/scribed -c $root/scribe/conf/scribe-client.conf"
-kill `ps -ef | grep -v grep | grep "${scribed}" | awk '{ print $2 }'`
+k=`ps -ef | grep -v grep | grep "${scribed}" | awk '{ print $2 }'`
+if [ "$k" != "" ]; then
+ kill $k
+fi
+