Skip to content

Commit

Permalink
Fix for the init script provided with Redis, thanks to Rowan. This fi…
Browse files Browse the repository at this point in the history
…xes issue 316
  • Loading branch information
antirez committed Sep 9, 2010
1 parent da14590 commit 7f9a4db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/redis_init_script
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ case "$1" in
then
echo -n "$PIDFILE does not exist, process is not running\n"
else
PID=$(cat $PIDFILE)
echo -n "Stopping ...\n"
echo -n "Sending SHUTDOWN\r\n" | nc localhost $REDISPORT &
PID=$(cat $PIDFILE)
echo -n "SHUTDOWN\r\n" | nc localhost $REDISPORT &
while [ -x /proc/${PIDFILE} ]
do
echo "Waiting for Redis to shutdown ..."
sleep 1
done
rm $PIDFILE
echo "Redis stopped"
fi
;;
Expand Down

0 comments on commit 7f9a4db

Please sign in to comment.