From d1e0c1b606fe2a8edce5965cee9ab023a5e27676 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Mon, 6 Feb 2012 13:15:06 -0500 Subject: 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 --- ipaserver/install/memcacheinstance.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ipaserver/install/memcacheinstance.py (limited to 'ipaserver/install/memcacheinstance.py') diff --git a/ipaserver/install/memcacheinstance.py b/ipaserver/install/memcacheinstance.py new file mode 100644 index 00000000..d4d28c38 --- /dev/null +++ b/ipaserver/install/memcacheinstance.py @@ -0,0 +1,24 @@ +# Authors: John Dennis +# +# 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 . +# + +import service + +class MemcacheInstance(service.SimpleServiceInstance): + def __init__(self): + service.SimpleServiceInstance.__init__(self, "ipa_memcached") -- cgit