summaryrefslogtreecommitdiffstats
path: root/install/restart_scripts/restart_dirsrv
blob: e243583f964b047c7af6075ece1c1de25ad56d98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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))