mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
14 lines
306 B
Plaintext
14 lines
306 B
Plaintext
|
#!/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))
|