summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.