Use correct redis service name on Ubuntu

Fixes ansible-tower service failure when [re]starting on Ubuntu systems.

Trello: https://trello.com/c/YLZM5SUH
This commit is contained in:
James Laska 2014-11-12 09:21:05 -05:00
parent bb2235fcb2
commit b8f96d3037

View File

@ -9,16 +9,16 @@
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Should-Stop:
# Default-Start:
# Default-Stop:
# Should-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: support init to manage tower and its related services
# Description: Ansible Tower provides an easy-to-use UI and dashboard, role-based access control and more for your Ansible initiative
### END INIT INFO
if [ -e /etc/debian_version ]
then
SERVICES=(postgresql redis apache2 supervisor)
then
SERVICES=(postgresql redis-server apache2 supervisor)
else
SERVICES=(postgresql redis httpd supervisord)
fi