Commit 0df2e5b9 authored by antirez's avatar antirez
Browse files

Fixed init script bug, thanks to Henrik Westphal

parent 0b4eb5fd
...@@ -28,7 +28,7 @@ case "$1" in ...@@ -28,7 +28,7 @@ case "$1" in
PID=$(cat $PIDFILE) PID=$(cat $PIDFILE)
echo "Stopping ..." echo "Stopping ..."
$CLIEXEC -p $REDISPORT shutdown $CLIEXEC -p $REDISPORT shutdown
while [ -x /proc/${PIDFILE} ] while [ -x /proc/${PID} ]
do do
echo "Waiting for Redis to shutdown ..." echo "Waiting for Redis to shutdown ..."
sleep 1 sleep 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment