diff options
Diffstat (limited to 'sca-cpp/trunk/components/log/scribed-central-stop')
-rwxr-xr-x | sca-cpp/trunk/components/log/scribed-central-stop | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-cpp/trunk/components/log/scribed-central-stop b/sca-cpp/trunk/components/log/scribed-central-stop index acded2a482..2d301149b8 100755 --- a/sca-cpp/trunk/components/log/scribed-central-stop +++ b/sca-cpp/trunk/components/log/scribed-central-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-central.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 + |