freeipa/install/restart_scripts/restart_dirsrv

14 lines
306 B
Plaintext
Raw Normal View History

#!/usr/bin/python -E
import sys
from ipapython import services as ipaservices
try:
instance = sys.argv[1]
except IndexError:
instance = ""
try:
ipaservices.knownservices.dirsrv.restart(instance)
except Exception, e:
print "Cannot restart dirsrv (instance: '%s'): %s" % (instance, str(e))