SHA256
1
0
forked from pool/redis

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
This commit is contained in:
Martin Pluskal 2015-06-15 12:20:51 +00:00 committed by Git OBS Bridge
parent 2c11a1dc95
commit 121c287bf9
2 changed files with 13 additions and 3 deletions

View File

@ -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... "

View File

@ -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