diff options
author | John Dennis <jdennis@redhat.com> | 2012-02-06 13:15:06 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2012-02-09 13:20:28 -0600 |
commit | d1e0c1b606fe2a8edce5965cee9ab023a5e27676 (patch) | |
tree | 2fa6cb298fe06bf06536e0cc72f22e0d5c553bdf /ipaserver | |
parent | af187713e774112a0c8315a691f4d0068b324e33 (diff) | |
download | freeipa-d1e0c1b606fe2a8edce5965cee9ab023a5e27676.tar.gz freeipa-d1e0c1b606fe2a8edce5965cee9ab023a5e27676.tar.xz freeipa-d1e0c1b606fe2a8edce5965cee9ab023a5e27676.zip |
Add ipa_memcached service
* Adds ipa_memcached SystemV initscript
* Adds ipa_memcached service file and tmpfiles.d/ipa.conf
to recreate /var/run/ipa_memcached on reboot.
* Adds ipa_memcached config file
* Adds memcacheinstnace.py to manage ipa_memcaced as
as SimpleService object.
* Updates the IPA service list to include ipa_memcached,
at service positon 39, httpd is position 40
* Updates the spec file:
- requires the memcached daemon and python client
- installs service or initscripts depending on OS
- installs config file
- creates /var/run/ipa_memcached directory
* Modifies ipa-server-install to install ipa_memcached
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/install/memcacheinstance.py | 24 | ||||
-rw-r--r-- | ipaserver/install/service.py | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/ipaserver/install/memcacheinstance.py b/ipaserver/install/memcacheinstance.py new file mode 100644 index 000000000..d4d28c38d --- /dev/null +++ b/ipaserver/install/memcacheinstance.py @@ -0,0 +1,24 @@ +# Authors: John Dennis <jdennis@redhat.com> +# +# Copyright (C) 2011 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 <http://www.gnu.org/licenses/>. +# + +import service + +class MemcacheInstance(service.SimpleServiceInstance): + def __init__(self): + service.SimpleServiceInstance.__init__(self, "ipa_memcached") diff --git a/ipaserver/install/service.py b/ipaserver/install/service.py index d9e6def37..467e60468 100644 --- a/ipaserver/install/service.py +++ b/ipaserver/install/service.py @@ -38,6 +38,7 @@ SERVICE_LIST = { 'KDC':('krb5kdc', 10), 'KPASSWD':('kadmin', 20), 'DNS':('named', 30), + 'MEMCACHE':('ipa_memcached', 39), 'HTTP':('httpd', 40), 'CA':('pki-cad', 50), 'ADTRUST':('smb', 60) |