16 lines
214 B
Bash
16 lines
214 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
run=/run/redis
|
||
|
|
||
|
case $1 in
|
||
|
start)
|
||
|
install -dm 750 -o redis -g redis $run
|
||
|
su redis -c "/usr/bin/redis-server /etc/redis.conf"
|
||
|
;;
|
||
|
stop)
|
||
|
/usr/bin/redis-cli shutdown
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
exit $?
|