]> git.saurik.com Git - redis.git/commitdiff
Fixed init script bug, thanks to Henrik Westphal
authorantirez <antirez@gmail.com>
Tue, 14 Jun 2011 15:11:44 +0000 (17:11 +0200)
committerantirez <antirez@gmail.com>
Tue, 14 Jun 2011 15:11:44 +0000 (17:11 +0200)
utils/redis_init_script

index 96da068362fd7b01004fc6e1599bc557fbfecf3e..4dfe98047c4a8df34d4f4cad3423e6da1141d770 100755 (executable)
@@ -28,7 +28,7 @@ case "$1" in
                 PID=$(cat $PIDFILE)
                 echo "Stopping ..."
                 $CLIEXEC -p $REDISPORT shutdown
-                while [ -x /proc/${PIDFILE} ]
+                while [ -x /proc/${PID} ]
                 do
                     echo "Waiting for Redis to shutdown ..."
                     sleep 1