Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#31710 - [redis] /etc/rc.d/redis stop for servers not bound to localhost
Attached to Project:
Community Packages
Opened by Scott W. Dunlop (swdunlop) - Thursday, 27 September 2012, 23:01 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 01 October 2012, 15:23 GMT
Opened by Scott W. Dunlop (swdunlop) - Thursday, 27 September 2012, 23:01 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 01 October 2012, 15:23 GMT
|
Details"rc.d redis stop" for redis configurations that are not bound to 127.0.0.1 result in redis getting a cold kill without a graceful shutdown.
This bug is present in package redis-2.7.14-1 and older versions. Steps to reproduce: 1) append "bind 10.0.0.1" or other non-localhost address to "/etc/redis.conf" 2) start redis using "rc.d start redis" 3) stop redis using "rc.d stop redis" Suggested fix: Add the following to /etc/rc.d/redis to extract the bound address for shutdown (a similar clause is already used to extract authentication): # And grab the server address REDISADDR=`egrep -o '^bind ([^#]+)' $CONF | cut -d\ -f 2` [ -n "$REDISADDR" ] && CLIEXEC="$CLIEXEC -h $REDISADDR" |
This task depends upon