summaryrefslogtreecommitdiffstats
path: root/run-memcached.sh
blob: ea342a6d7035e008b98768154aa4a76875395cbd (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

if [[ -f /etc/memcached.d/memcached ]] && [[ -s /etc/memcached.d/memcached ]]
then
    source /etc/memcached.d/memcached
    exec /usr/bin/memcached -p ${PORT} -u ${USER} -m ${CACHESIZE} -c ${MAXCONN} $OPTIONS
else
    exec /usr/bin/memcached -p 11211 -u memcached -m 64 -c 1024
fi