7 printf "Starting redis: "
9 start-stop-daemon
-S -q -c redis
:redis
-b \
10 --exec /usr
/bin
/redis-server
-- /etc
/redis.conf
11 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
14 printf "Stopping redis: "
15 /usr
/bin
/redis-cli shutdown
16 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
34 echo "Usage: $0 {start|stop|restart}"