summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Darley <patrick.darley@codethink.co.uk>2015-02-19 11:07:41 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-02-27 17:24:23 +0000
commitfe0fd2a9b64cf9c4ce28619f689b2a3ed6a87907 (patch)
tree532d02a686a74486e30c46f1d331cd076bc40929
parent6d2c130a4f1a87223222d31240630da496ebce20 (diff)
downloaddefinitions-fe0fd2a9b64cf9c4ce28619f689b2a3ed6a87907.tar.gz
Install the systemd unit included with memcached source
and add a default config file where the systemd unit expects
-rw-r--r--strata/databases/memcached.morph13
1 files changed, 13 insertions, 0 deletions
diff --git a/strata/databases/memcached.morph b/strata/databases/memcached.morph
index 28e01362..5d55b727 100644
--- a/strata/databases/memcached.morph
+++ b/strata/databases/memcached.morph
@@ -6,3 +6,16 @@ configure-commands:
- touch README
- autoreconf -fvi
- ./configure --prefix="$PREFIX"
+install-commands:
+- make install
+- install -D -m 755 scripts/memcached.service "$DESTDIR"/etc/systemd/system/memcached.service
+post-install-commands:
+- mkdir -p "$DESTDIR"/etc/sysconfig
+- |
+ cat <<EOF > "$DESTDIR"/etc/sysconfig/memcached
+ PORT="11211"
+ USER="nobody"
+ MAXCONN="1024"
+ CACHESIZE="64"
+ OPTIONS=""
+ EOF