diff options
Diffstat (limited to 'sca-cpp/trunk/components/cache/memcached-stop')
-rwxr-xr-x | sca-cpp/trunk/components/cache/memcached-stop | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sca-cpp/trunk/components/cache/memcached-stop b/sca-cpp/trunk/components/cache/memcached-stop index 50d094b9c7..a36c03c06a 100755 --- a/sca-cpp/trunk/components/cache/memcached-stop +++ b/sca-cpp/trunk/components/cache/memcached-stop @@ -23,18 +23,18 @@ root=`echo "import os; print os.path.realpath('$1')" | python` addr=$2 if [ "$addr" = "" ]; then - ip="" + host="" port="11211" else - ip=`$here/../../modules/http/httpd-addr ip $addr` + host=`$here/../../modules/http/httpd-addr ip $addr` port=`$here/../../modules/http/httpd-addr port $addr` fi memcached_prefix=`cat $here/memcached.prefix` -if [ "$ip" = "" ]; then +if [ "$host" = "" ]; then mc="$memcached_prefix/bin/memcached -d -m 4 -p $port" else - mc="$memcached_prefix/bin/memcached -d -l $ip -m 4 -p $port" + mc="$memcached_prefix/bin/memcached -d -l $host -m 4 -p $port" fi k=`ps -ef | grep -v grep | grep "${mc}" | awk '{ print $2 }'` |