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:28:00 -0600 |
commit | a11d07e01bece4b7dcbd346a337e7a87769acad0 (patch) | |
tree | 4ab82dda62b706e1779ccbfadb613a049cb0e551 /ipaserver/install/memcacheinstance.py | |
parent | 3fa38607b64e0afb579ebd552ddbb33eca671738 (diff) | |
download | freeipa-a11d07e01bece4b7dcbd346a337e7a87769acad0.tar.gz freeipa-a11d07e01bece4b7dcbd346a337e7a87769acad0.tar.xz freeipa-a11d07e01bece4b7dcbd346a337e7a87769acad0.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/install/memcacheinstance.py')
-rw-r--r-- | ipaserver/install/memcacheinstance.py | 24 |
1 files changed, 24 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") |