From b2c378dcc8221dbf254b0cd0b204e84f0d0eeebf Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Wed, 5 Jun 2013 15:48:35 +0200 Subject: Manage ipa-otpd.socket by IPA Adds a new simple service called OtpdInstance, that manages ipa-otpd.socket service. Added to server/replica installer and ipa-upgradeconfig script. https://fedorahosted.org/freeipa/ticket/3680 --- ipaserver/install/otpdinstance.py | 25 +++++++++++++++++++++++++ ipaserver/install/service.py | 17 +++++++++-------- 2 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 ipaserver/install/otpdinstance.py (limited to 'ipaserver/install') diff --git a/ipaserver/install/otpdinstance.py b/ipaserver/install/otpdinstance.py new file mode 100644 index 000000000..2eed3f8a2 --- /dev/null +++ b/ipaserver/install/otpdinstance.py @@ -0,0 +1,25 @@ +# Authors: Tomas Babej +# +# Copyright (C) 2013 Red Hat +# see file 'COPYING' for use and warranty information +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +import service + + +class OtpdInstance(service.SimpleServiceInstance): + def __init__(self): + service.SimpleServiceInstance.__init__(self, "ipa-otpd") \ No newline at end of file diff --git a/ipaserver/install/service.py b/ipaserver/install/service.py index 8f4a7dbb0..f3cd1897f 100644 --- a/ipaserver/install/service.py +++ b/ipaserver/install/service.py @@ -40,14 +40,15 @@ DISABLED = 3 # 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 = { - 'KDC':('krb5kdc', 10), - 'KPASSWD':('kadmin', 20), - 'DNS':('named', 30), - 'MEMCACHE':('ipa_memcached', 39), - 'HTTP':('httpd', 40), - 'CA':('%sd' % dogtag.configured_constants().PKI_INSTANCE_NAME, 50), - 'ADTRUST':('smb', 60), - 'EXTID':('winbind', 70) + 'KDC': ('krb5kdc', 10), + 'KPASSWD': ('kadmin', 20), + 'DNS': ('named', 30), + 'MEMCACHE': ('ipa_memcached', 39), + 'HTTP': ('httpd', 40), + 'CA': ('%sd' % dogtag.configured_constants().PKI_INSTANCE_NAME, 50), + 'ADTRUST': ('smb', 60), + 'EXTID': ('winbind', 70), + 'OTPD': ('ipa-otpd', 80), } def print_msg(message, output_fd=sys.stdout): -- cgit