Use service.py helpers

In dsinstance.py, there's one place we could use the
service.py helpers where we don't currently.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
This commit is contained in:
Mark McLoughlin
2008-01-11 10:36:25 +00:00
parent 9161dcbbdc
commit ff6c720026

View File

@@ -80,7 +80,7 @@ def check_existing_installation():
sys.exit(1)
try:
ipautil.run(["/sbin/service", "dirsrv", "stop"])
service.stop("dirsrv")
except:
pass
for d in dirs: