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:
parent
2c11a1dc95
commit
121c287bf9
@ -1,6 +1,8 @@
|
|||||||
--- utils/redis_init_script.orig 2012-07-31 16:48:33.000000000 +0200
|
Index: utils/redis_init_script
|
||||||
+++ utils/redis_init_script 2012-11-20 15:05:55.000000000 +0100
|
===================================================================
|
||||||
@@ -1,42 +1,131 @@
|
--- utils/redis_init_script.orig
|
||||||
|
+++ utils/redis_init_script
|
||||||
|
@@ -1,42 +1,133 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
+
|
+
|
||||||
+# System startup script for Redis for OpenSUSE >= 11.4
|
+# System startup script for Redis for OpenSUSE >= 11.4
|
||||||
@ -89,9 +91,11 @@
|
|||||||
+ CLI='/usr/bin/redis-cli'
|
+ CLI='/usr/bin/redis-cli'
|
||||||
+ PASS=`grep ^requirepass $CONFIG | awk '{print $2}'`
|
+ PASS=`grep ^requirepass $CONFIG | awk '{print $2}'`
|
||||||
+ PORT=`grep ^port $CONFIG | awk '{print $2}'`
|
+ PORT=`grep ^port $CONFIG | awk '{print $2}'`
|
||||||
|
+ BIND=`grep ^bind $CONFIG | awk '{print $2}'`
|
||||||
+
|
+
|
||||||
+ CLI="$CLI -p $PORT"
|
+ CLI="$CLI -p $PORT"
|
||||||
+ [ -n "$PASS" ] && CLI="$CLI -a $PASS"
|
+ [ -n "$PASS" ] && CLI="$CLI -a $PASS"
|
||||||
|
+ [ -n "$BIND" ] && CLI="$CLI -h $BIND"
|
||||||
+
|
+
|
||||||
+ $CLI shutdown
|
+ $CLI shutdown
|
||||||
+ echo -n "Waiting... "
|
+ echo -n "Waiting... "
|
||||||
|
@ -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
|
Sun Jun 7 02:25:12 UTC 2015 - mrueckert@suse.de
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user