summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/components/cache/memcached-stop
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/components/cache/memcached-stop')
-rwxr-xr-xsca-cpp/trunk/components/cache/memcached-stop6
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-cpp/trunk/components/cache/memcached-stop b/sca-cpp/trunk/components/cache/memcached-stop
index 2b3b66c74d..50d094b9c7 100755
--- a/sca-cpp/trunk/components/cache/memcached-stop
+++ b/sca-cpp/trunk/components/cache/memcached-stop
@@ -37,4 +37,8 @@ else
mc="$memcached_prefix/bin/memcached -d -l $ip -m 4 -p $port"
fi
-kill `ps -ef | grep -v grep | grep "${mc}" | awk '{ print $2 }'`
+k=`ps -ef | grep -v grep | grep "${mc}" | awk '{ print $2 }'`
+if [ "$k" != "" ]; then
+ kill $k
+fi
+