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#29552 - [redis] rc script fails to properly stop the service is password authentication is enabled
Attached to Project:
Community Packages
Opened by Alex B (alexbhr) - Saturday, 21 April 2012, 20:50 GMT
Last edited by Sergej Pupykin (sergej) - Saturday, 28 April 2012, 09:11 GMT
Opened by Alex B (alexbhr) - Saturday, 21 April 2012, 20:50 GMT
Last edited by Sergej Pupykin (sergej) - Saturday, 28 April 2012, 09:11 GMT
|
DetailsHi!
It seems like if the requirepass directive is set in redis.conf, the rc script fails to properly interact with and shut down the server. The following is a patch to address that: diff -u rc-redis-orig rc-redis-password-detection --- rc-redis-orig 2012-04-21 20:34:20.022877178 +0000 +++ rc-redis-password-detection 2012-04-21 20:06:51.416182978 +0000 @@ -12,6 +12,11 @@ WORKDIR=/var/lib/redis CONF="/etc/redis.conf" +# Grab the server password, if exists +REDISPASS=$(egrep -o "^requirepass ([^#]+)" $CONF|cut -d" " -f 2) + +[ ! -z "$REDISPASS" ] && CLIEXEC="$CLIEXEC -a $REDISPASS" + case "$1" in start) stat_busy "Starting $daemon_name" Additional info: Happens in the latest 2.4.10 install. Steps to reproduce: # echo "requirepass ownage" >> /etc/redis.conf # /etc/rc.d/redis start # /etc/rc.d/redis stop < it will hang and eventually kill redis > |
This task depends upon
Closed by Sergej Pupykin (sergej)
Saturday, 28 April 2012, 09:11 GMT
Reason for closing: Implemented
Saturday, 28 April 2012, 09:11 GMT
Reason for closing: Implemented