Add a conditional-reload script and use it so we can not fail on hosts with no httpd installed.

This commit is contained in:
Kevin Fenzi 2015-11-13 23:49:38 +00:00
parent b4457a616b
commit 17d96e5da9
2 changed files with 21 additions and 1 deletions

View file

@ -34,7 +34,7 @@
command: /usr/local/bin/conditional-restart.sh fedmsg-relay fedmsg-relay
- name: reload httpd
action: service name=httpd state=reloaded
command: /usr/local/bin/conditional-reload.sh httpd httpd
- name: restart iptables
action: service name=iptables state=restarted