Commit 280798ae authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev
Browse files

Initial commit

parents
all: memcached-service
tar xf memcached-1.5.12.tar.gz
cd memcached-1.5.12 && ./configure --prefix=/usr
$(MAKE) -C memcached-1.5.12
$(MAKE) -C memcached-1.5.12 test
$(MAKE) -C memcached-1.5.12 install
@echo "$$MEMCACHED_SERVICE" > /lib/systemd/system/memcached.service
systemctl enable memcached.service
rm -rf memcached-1.5.12
memcached-service:
define MEMCACHED_SERVICE
[Unit]
Description=Memcached server
After=network.target
[Service]
Type=notify
PIDFile=/run/memcached.pid
User=nobody
Group=nobody
ExecStart=/usr/bin/memcached -l 127.0.0.1 -m 512 -d -P /run/memcached.pid
Restart=always
[Install]
WantedBy=multi-user.target
endef
export MEMCACHED_SERVICE
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment