restart() { kill `cat redis.pid` path=`pwd` $path/redis-server redis.conf } case $1 in restart) restart ;; *) echo "usage: $0 start|stop|restart version" ;; esac