From 121c287bf9151361d63d981fe36e77db7379601cddf6e1a01516eceb398a8e3a Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 15 Jun 2015 12:20:51 +0000 Subject: [PATCH] Accepting request 312099 from home:darix:apps - also pass the bind address to the redis-cli for shutdown (boo#835815) OBS-URL: https://build.opensuse.org/request/show/312099 OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=68 --- redis-initscript.patch | 10 +++++++--- redis.changes | 6 ++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/redis-initscript.patch b/redis-initscript.patch index 9787890..f69af1b 100644 --- a/redis-initscript.patch +++ b/redis-initscript.patch @@ -1,6 +1,8 @@ ---- utils/redis_init_script.orig 2012-07-31 16:48:33.000000000 +0200 -+++ utils/redis_init_script 2012-11-20 15:05:55.000000000 +0100 -@@ -1,42 +1,131 @@ +Index: utils/redis_init_script +=================================================================== +--- utils/redis_init_script.orig ++++ utils/redis_init_script +@@ -1,42 +1,133 @@ #!/bin/sh + +# System startup script for Redis for OpenSUSE >= 11.4 @@ -89,9 +91,11 @@ + CLI='/usr/bin/redis-cli' + PASS=`grep ^requirepass $CONFIG | awk '{print $2}'` + PORT=`grep ^port $CONFIG | awk '{print $2}'` ++ BIND=`grep ^bind $CONFIG | awk '{print $2}'` + + CLI="$CLI -p $PORT" + [ -n "$PASS" ] && CLI="$CLI -a $PASS" ++ [ -n "$BIND" ] && CLI="$CLI -h $BIND" + + $CLI shutdown + echo -n "Waiting... " diff --git a/redis.changes b/redis.changes index 69a5d6a..60c864b 100644 --- a/redis.changes +++ b/redis.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 15 11:07:16 UTC 2015 - mrueckert@suse.de + +- also pass the bind address to the redis-cli for shutdown + (boo#835815) + ------------------------------------------------------------------- Sun Jun 7 02:25:12 UTC 2015 - mrueckert@suse.de