From bd1df14bd6f7f94de9044294cae045549019273f Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Tue, 17 Jun 2014 16:12:47 +0200 Subject: Fix ipa.service restart Ticket: https://fedorahosted.org/freeipa/ticket/4243 Reviewed-By: Martin Kosek --- freeipa.spec.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'freeipa.spec.in') diff --git a/freeipa.spec.in b/freeipa.spec.in index 0d2221d09..e19fd2a19 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -506,7 +506,10 @@ fi python2 -c "import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);" > /dev/null 2>&1 # NOTE: systemd specific section if [ $? -eq 0 ]; then - /bin/systemctl try-restart ipa.service >/dev/null 2>&1 || : + /bin/systemctl is-enabled ipa.service >/dev/null 2>&1 + if [ $? -eq 0 ]; then + /bin/systemctl restart ipa.service >/dev/null 2>&1 || : + fi fi # END -- cgit