python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / redis / S50redis
blobae2a34174d9ad0c5a1f705c0fbeceeafbf718711
1 #!/bin/sh
3 # start redis
6 start() {
7 printf "Starting redis: "
8 umask 077
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"
13 stop() {
14 printf "Stopping redis: "
15 /usr/bin/redis-cli shutdown
16 [ $? = 0 ] && echo "OK" || echo "FAIL"
18 restart() {
19 stop
20 start
23 case "$1" in
24 start)
25 start
27 stop)
28 stop
30 restart|reload)
31 restart
34 echo "Usage: $0 {start|stop|restart}"
35 exit 1
36 esac
38 exit $?