Imported Debian patch 4.0.5-6~numeezy

This commit is contained in:
Alexandre Ellert
2016-02-17 15:07:45 +01:00
committed by Mario Fetka
parent c44de33144
commit 10dfc9587b
1203 changed files with 53869 additions and 241462 deletions

View File

@@ -24,10 +24,8 @@ import syslog
import traceback
from ipalib import api
from ipaplatform import services
from ipaserver.install import certs
def _main():
def main():
try:
instance = sys.argv[1]
except IndexError:
@@ -40,15 +38,9 @@ def _main():
try:
services.knownservices.dirsrv.restart(instance)
except Exception as e:
except Exception, e:
syslog.syslog(syslog.LOG_ERR, "Cannot restart dirsrv (instance: '%s'): %s" % (instance, str(e)))
def main():
with certs.renewal_lock:
_main()
try:
main()
except Exception: