]>
git.saurik.com Git - redis.git/blob - utils/redis_init_script
4 EXEC
=/usr
/local
/bin
/redis
-server
6 PIDFILE
=/var
/run
/redis_
${REDISPORT}.pid
7 CONF
="/etc/redis/${REDISPORT}.conf"
13 echo -n "$PIDFILE exists, process is already running or crashed\n"
15 echo -n "Starting Redis server...\n"
22 echo -n "$PIDFILE does not exist, process is not running\n"
25 echo -n "Stopping ...\n"
26 echo -n "SHUTDOWN\r\n" | nc localhost
$REDISPORT &
27 while [ -x /proc
/${PIDFILE} ]
29 echo "Waiting for Redis to shutdown ..."