]>
git.saurik.com Git - redis.git/blob - utils/redis_init_script
3 # Simple Redis init.d script conceived to work on Linux systems
4 # as it does use of the /proc filesystem.
7 EXEC
=/usr
/local
/bin
/redis
-server
8 CLIEXEC
=/usr
/local
/bin
/redis
-cli
10 PIDFILE
=/var
/run
/redis_
${REDISPORT}.pid
11 CONF
="/etc/redis/${REDISPORT}.conf"
17 echo "$PIDFILE exists, process is already running or crashed"
19 echo "Starting Redis server..."
26 echo "$PIDFILE does not exist, process is not running"
30 $CLIEXEC -p $REDISPORT shutdown
31 while [ -x /proc
/${PID} ]
33 echo "Waiting for Redis to shutdown ..."
40 echo "Please use start or stop as first argument"