mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
certmonger now has the ability to execute a script when it renews a certificate. This can be used to automatically restart servers so the certificate doesn't expire in the running server. https://fedorahosted.org/freeipa/ticket/2050
8 lines
186 B
Python
8 lines
186 B
Python
#!/usr/bin/python -E
|
|
from ipapython import services as ipaservices
|
|
|
|
try:
|
|
ipaservices.knownservices.httpd.restart()
|
|
except Exception, e:
|
|
print "Cannot restart httpd: %s" % str(e)
|