Skip to content

Commit

Permalink
make redis-shutdown more robust, fix #22
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Aug 5, 2015
1 parent 200a689 commit a1bdf43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions redis/redis-shutdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ fi
CONFIG_FILE="/etc/$SERVICE_NAME.conf"

# Use awk to retrieve host, port from config file
HOST=`awk '/^[[:blank:]]*bind/ { print $2 }' $CONFIG_FILE`
PORT=`awk '/^[[:blank:]]*port/ { print $2 }' $CONFIG_FILE`
HOST=`awk '/^[[:blank:]]*bind/ { print $2 }' $CONFIG_FILE | tail -n1`
PORT=`awk '/^[[:blank:]]*port/ { print $2 }' $CONFIG_FILE | tail -n1`

# Just in case, use default host, port
HOST=${HOST:-127.0.0.1}
Expand Down
5 changes: 4 additions & 1 deletion redis/redis.spec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

Name: redis
Version: 3.0.3
Release: 1%{?dist}
Release: 1%{?dist}.1
Summary: A persistent key-value database

Group: Applications/Databases
Expand Down Expand Up @@ -258,6 +258,9 @@ fi


%changelog
* Wed Aug 5 2015 Remi Collet <remi@fedoraproject.org> - 3.0.3-1.1
- make redis-shutdown more robust, see #22

* Fri Jul 17 2015 Remi Collet <remi@fedoraproject.org> - 3.0.3-1
- Redis 3.0.3 - Release date: 17 Jul 2015
- Upgrade urgency: LOW for Redis and Sentinel.
Expand Down

0 comments on commit a1bdf43

Please sign in to comment.