summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipaserver/httpinstance.py
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2008-01-22 11:58:06 +0000
committerMark McLoughlin <markmc@redhat.com>2008-01-22 11:58:06 +0000
commit11266d039f6c59be1bf8ce888972d012ce49ddf6 (patch)
tree4b251571c8ef18ec1484808d0bf5c34c5b471098 /ipa-server/ipaserver/httpinstance.py
parent5fd10b5f98588892cdd832c0c71dc4a98cc135ee (diff)
downloadfreeipa.git-11266d039f6c59be1bf8ce888972d012ce49ddf6.tar.gz
freeipa.git-11266d039f6c59be1bf8ce888972d012ce49ddf6.tar.xz
freeipa.git-11266d039f6c59be1bf8ce888972d012ce49ddf6.zip
Re-factor the ipa_webgui and ipa_kpasswd instance code
The ipa_webgui and ipa_kpasswd instance code is identical and I want to add another similar instance down the line, so re-factor the code into a service.SimpleServiceInstance class. Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Diffstat (limited to 'ipa-server/ipaserver/httpinstance.py')
-rw-r--r--ipa-server/ipaserver/httpinstance.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-server/ipaserver/httpinstance.py b/ipa-server/ipaserver/httpinstance.py
index 8577a25b..12e5ae10 100644
--- a/ipa-server/ipaserver/httpinstance.py
+++ b/ipa-server/ipaserver/httpinstance.py
@@ -47,6 +47,10 @@ successfully change with the command:
Try updating the policycoreutils and selinux-policy packages.
"""
+class WebGuiInstance(service.SimpleServiceInstance):
+ def __init__(self):
+ service.SimpleServiceInstance.__init__(self, "ipa_webgui")
+
class HTTPInstance(service.Service):
def __init__(self):
service.Service.__init__(self, "httpd")