summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/memcacheinstance.py
diff options
context:
space:
mode:
authorJohn Dennis <jdennis@redhat.com>2012-02-06 13:15:06 -0500
committerEndi S. Dewata <edewata@redhat.com>2012-02-09 13:20:28 -0600
commitd1e0c1b606fe2a8edce5965cee9ab023a5e27676 (patch)
tree2fa6cb298fe06bf06536e0cc72f22e0d5c553bdf /ipaserver/install/memcacheinstance.py
parentaf187713e774112a0c8315a691f4d0068b324e33 (diff)
downloadfreeipa-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/install/memcacheinstance.py')
-rw-r--r--ipaserver/install/memcacheinstance.py24
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")