summaryrefslogtreecommitdiffstats
path: root/roles/base/files/common-scripts/conditional-restart.sh
diff options
context:
space:
mode:
authorMiroslav Suchý <msuchy@redhat.com>2014-12-08 13:46:23 +0000
committerMiroslav Suchý <msuchy@redhat.com>2014-12-08 13:46:23 +0000
commitada13bf8228b149892d18cb41a71efb4d6052aff (patch)
tree7aa624062abc546a0537a99b222413e8016d296e /roles/base/files/common-scripts/conditional-restart.sh
parent09137e6de06249c78723bf163b745158182ade4e (diff)
downloadansible-ada13bf8228b149892d18cb41a71efb4d6052aff.tar.gz
ansible-ada13bf8228b149892d18cb41a71efb4d6052aff.tar.xz
ansible-ada13bf8228b149892d18cb41a71efb4d6052aff.zip
accidentally leaked to previous commit, reverting back
Diffstat (limited to 'roles/base/files/common-scripts/conditional-restart.sh')
-rw-r--r--roles/base/files/common-scripts/conditional-restart.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/roles/base/files/common-scripts/conditional-restart.sh b/roles/base/files/common-scripts/conditional-restart.sh
index f4ac932a2..f95ef741d 100644
--- a/roles/base/files/common-scripts/conditional-restart.sh
+++ b/roles/base/files/common-scripts/conditional-restart.sh
@@ -10,13 +10,9 @@ rpm -q $PACKAGE
INSTALLED=$?
if [ $INSTALLED -eq 0 ]; then
- if chkconfig $PACKAGE; then
- echo "Package $PACKAGE installed. Attempting restart of $SERVICE."
- /sbin/service $SERVICE restart
- exit $? # Exit with the /sbin/service status code
- else
- echo "Package $PACKAGE not enabled. Skipping restart of $SERVICE."
- fi
+ echo "Package $PACKAGE installed. Attempting restart of $SERVICE."
+ /sbin/service $SERVICE restart
+ exit $? # Exit with the /sbin/service status code
fi
# If the package wasn't installed, then pretend everything is fine.