summaryrefslogtreecommitdiffstats
path: root/install/restart_scripts/restart_httpd
diff options
context:
space:
mode:
Diffstat (limited to 'install/restart_scripts/restart_httpd')
-rw-r--r--install/restart_scripts/restart_httpd10
1 files changed, 9 insertions, 1 deletions
diff --git a/install/restart_scripts/restart_httpd b/install/restart_scripts/restart_httpd
index e3ef73c4f..f060a3091 100644
--- a/install/restart_scripts/restart_httpd
+++ b/install/restart_scripts/restart_httpd
@@ -22,8 +22,10 @@
import syslog
import traceback
from ipaplatform import services
+from ipaserver.install import certs
-def main():
+
+def _main():
syslog.syslog(syslog.LOG_NOTICE, 'certmonger restarted httpd')
try:
@@ -31,6 +33,12 @@ def main():
except Exception, e:
syslog.syslog(syslog.LOG_ERR, "Cannot restart httpd: %s" % str(e))
+
+def main():
+ with certs.renewal_lock:
+ _main()
+
+
try:
main()
except Exception: