Source

woocode / sa-auto / sh / memcached.sh

Full commit
#!/bin/sh

SH_DIR=$(dirname $(which $0))

. $SH_DIR/app_env.sh


if [ "$1" = "stop" ] ; then

   killall -9 memcached

elif [ "$1" = "restart" ]; then

   killall -9 memcached
   $APP_SVR/memcached/bin/memcached -m 1024 -p 11211 -l 127.0.0.1 &

elif [ "$1" = "start" ]; then
   $APP_SVR/memcached/bin/memcached -m 1024 -p 11211 -l 127.0.0.1 &

else
	echo "usage: $0 start|stop|restart"
fi

#-u nobody