summaryrefslogtreecommitdiff
path: root/community/redis
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-02 01:06:16 -0700
committerroot <root@rshg054.dnsready.net>2012-10-02 01:06:16 -0700
commit941550cbc215d608bd18439f99500b74fbb80f0d (patch)
treeced50aee5db693d8495b19c59d2bdbd6927c9393 /community/redis
parent9b6be78b0c13a61c14d5278f1363eaf9c6388e4c (diff)
Tue Oct 2 01:06:06 PDT 2012
Diffstat (limited to 'community/redis')
-rw-r--r--community/redis/PKGBUILD6
-rw-r--r--community/redis/redis.d5
2 files changed, 8 insertions, 3 deletions
diff --git a/community/redis/PKGBUILD b/community/redis/PKGBUILD
index 16ead1ff8..03c783fff 100644
--- a/community/redis/PKGBUILD
+++ b/community/redis/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 75852 2012-09-03 15:18:26Z spupykin $
+# $Id: PKGBUILD 76882 2012-10-01 15:26:16Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jan-Erik Rediger <badboy at archlinux dot us>
# Contributor: nofxx <x@<nick>.com>
pkgname=redis
pkgver=2.4.17
-pkgrel=1
+pkgrel=2
pkgdesc="Advanced key-value store"
arch=('i686' 'x86_64')
url="http://redis.io/"
@@ -20,7 +20,7 @@ source=("http://redis.googlecode.com/files/${pkgname}-${pkgver}.tar.gz"
"redis.service"
"redis.logrotate")
md5sums=('f921ce282fb1780cb4a5646e242dadea'
- '4f2c02b481283d1336508c988e60e8d8'
+ '8d843919d9f165e9a47e56cadb4ac2ed'
'5ab9fdb200e15c13b450fda77fa030b6'
'9e2d75b7a9dc421122d673fe520ef17f')
diff --git a/community/redis/redis.d b/community/redis/redis.d
index 4babbaaa5..e1c79dd2b 100644
--- a/community/redis/redis.d
+++ b/community/redis/redis.d
@@ -48,6 +48,11 @@ case "$1" in
exit 1
else
PID=$(cat $PIDFILE)
+
+ # And grab the server address
+ REDISADDR=`egrep -o '^bind ([^#]+)' $CONF | cut -d' ' -f2`
+ [ -n "$REDISADDR" ] && CLIEXEC="$CLIEXEC -h $REDISADDR"
+
$CLIEXEC -p $REDISPORT shutdown
[ -d /proc/${PID} ] && sleep 1
[ -d /proc/${PID} ] && sleep 5