diff options
Diffstat (limited to 'ipaserver/install/service.py')
-rw-r--r-- | ipaserver/install/service.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/ipaserver/install/service.py b/ipaserver/install/service.py index e15d4e5e0..1d157eba4 100644 --- a/ipaserver/install/service.py +++ b/ipaserver/install/service.py @@ -23,6 +23,7 @@ import tempfile import pwd from ipapython import sysrestore from ipapython import ipautil +from ipapython import dogtag from ipapython import services as ipaservices from ipalib import errors from ipapython.dn import DN @@ -41,17 +42,6 @@ AUTO = 1 ENABLED = 2 DISABLED = 3 -# Determine if we have an updated dogtag instance (dogtag 10+) or -# an older one. -dogtag_service = 'pki-cad' -try: - for line in open("/etc/ipa/default.conf", "r"): - if "dogtag_version" in line: - dogtag_service = 'pki-tomcatd' - break -except IOError, e: - pass - # The service name as stored in cn=masters,cn=ipa,cn=etc. In the tuple # the first value is the *nix service name, the second the start order. SERVICE_LIST = { @@ -60,7 +50,7 @@ SERVICE_LIST = { 'DNS':('named', 30), 'MEMCACHE':('ipa_memcached', 39), 'HTTP':('httpd', 40), - 'CA':(dogtag_service, 50), + 'CA':('%sd' % dogtag.configured_constants().PKI_INSTANCE_NAME, 50), 'ADTRUST':('smb', 60), 'EXTID':('winbind', 70) } |