[Freeipa-devel] [PATCH 3 of 8] Use service.py helpers
Mark McLoughlin
markmc at redhat.com
Fri Jan 11 12:00:40 UTC 2008
# HG changeset patch
# User Mark McLoughlin <markmc at redhat.com>
# Date 1200047785 0
# Node ID 85547227bc31c8b12e0569f04ccfb77d2d986f27
# Parent 454a6aa17f5a039c1d96e30df02c49599b15f972
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 at redhat.com>
diff -r 454a6aa17f5a -r 85547227bc31 ipa-server/ipaserver/dsinstance.py
--- a/ipa-server/ipaserver/dsinstance.py Fri Jan 11 10:36:25 2008 +0000
+++ b/ipa-server/ipaserver/dsinstance.py Fri Jan 11 10:36:25 2008 +0000
@@ -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:
More information about the Freeipa-devel
mailing list