account for rabbitmq-server sys v init script on all releases

This commit is contained in:
Ryan Beisner 2015-06-09 18:56:21 +00:00
parent 8300968c90
commit 82fcb9ca89
1 changed files with 2 additions and 1 deletions

View File

@ -180,7 +180,8 @@ class AmuletUtils(object):
return ret
for service_name in services_list:
if self.ubuntu_releases.index(release) >= systemd_switch:
if (self.ubuntu_releases.index(release) >= systemd_switch or
service_name == "rabbitmq-server"):
# init is systemd
cmd = 'sudo service {} status'.format(service_name)
elif self.ubuntu_releases.index(release) < systemd_switch: