Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1178144

Summary: redis-shutdown stopping redis and not redis sentinel
Product: [Fedora] Fedora EPEL Reporter: thenomadinlondon
Component: redisAssignee: Haïkel Guémar <karlthered>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: fpercoco, i, karlthered
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: redis-2.8.19-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-27 13:38:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description thenomadinlondon 2015-01-02 14:42:59 UTC
Description of problem:

Running /usr/bin/redis-shutdown redis-sentinel results in shutdown of redis-server service.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.yum install redis-server
2.systemctl stop redis-sentinel
3.

Actual results:

Redis service stops

Expected results:

Redis sentinel to stop

Additional info:

In /usr/bin/redis-shutdown:

SERVICE_NAME="$2"

As far as I can tell $2 will never be passed to the script which will always result in redis-srver being sutdown (default). By changing $2 to $1 the script will act as desired. 
Additionally /lib/systemd/system/redis-sentinel sentinel needs to be changed from 'sentinel' to 'redis-sentinel' for this to work.

Comment 1 Haïkel Guémar 2015-01-12 11:08:58 UTC
Please use the latest version of the package which should fix this issue. If it's not yet in stable, use the one in updates-testing.

Comment 2 Fedora Update System 2015-02-27 20:33:18 UTC
redis-2.8.19-1.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/redis-2.8.19-1.el7

Comment 3 Fedora Update System 2015-03-28 18:37:25 UTC
redis-2.8.19-1.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.