diff options
author | Matt Thode <prometheanfire@gentoo.org> | 2014-01-27 07:16:22 +0000 |
---|---|---|
committer | Matt Thode <prometheanfire@gentoo.org> | 2014-01-27 07:16:22 +0000 |
commit | 4e8242a7ce3fa1c380293119986de21884c18a46 (patch) | |
tree | 8f04601a230cb8d9c1f3ff2a97b0dd973efe82ea /net-misc/memcached | |
parent | removing stuff in 1.2.4 net-misc/memcached files dir (diff) | |
download | historical-4e8242a7ce3fa1c380293119986de21884c18a46.tar.gz historical-4e8242a7ce3fa1c380293119986de21884c18a46.tar.bz2 historical-4e8242a7ce3fa1c380293119986de21884c18a46.zip |
removing stuff in net-misc/memcached/files/1.2.5
Diffstat (limited to 'net-misc/memcached')
-rw-r--r-- | net-misc/memcached/files/1.2.5/conf | 32 | ||||
-rw-r--r-- | net-misc/memcached/files/1.2.5/init | 75 |
2 files changed, 0 insertions, 107 deletions
diff --git a/net-misc/memcached/files/1.2.5/conf b/net-misc/memcached/files/1.2.5/conf deleted file mode 100644 index 44c20837f327..000000000000 --- a/net-misc/memcached/files/1.2.5/conf +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2003 Gentoo Technologies, Inc -# $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/files/1.2.5/conf,v 1.1 2008/03/31 12:17:07 caleb Exp $ -# memcached config file - -MEMCACHED_BINARY="/usr/bin/memcached" - -#Specify memory usage in megabytes (do not use letters) -#64MB is default -MEMUSAGE="64" - -#User to run as -MEMCACHED_RUNAS="memcached" - -#Specify maximum number of concurrent connections -#1024 is default -MAXCONN="1024" - -#Listen for connections on what address? -# If this is empty, memcached will listen on 0.0.0.0 -# be sure you have a firewall in place! -LISTENON="" - -#Listen for connections on what port? -PORT="11211" - -#PID file location -# '-${PORT}.${CONF}.pid' will be appended to this! -# You do not normally need to change this. -PIDBASE="/var/run/memcached/memcached" - -#Other Options -MISC_OPTS="" diff --git a/net-misc/memcached/files/1.2.5/init b/net-misc/memcached/files/1.2.5/init deleted file mode 100644 index b0b7320863c0..000000000000 --- a/net-misc/memcached/files/1.2.5/init +++ /dev/null @@ -1,75 +0,0 @@ -#!/sbin/runscript -# $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/files/1.2.5/init,v 1.2 2011/12/31 20:36:20 idl0r Exp $ - -CONF="${SVCNAME#*.}" -CONFBASE="/etc/conf.d/memcached" - -[ -z "${PIDBASE}" ] && PIDBASE="/var/run/memcached/memcached" -[ "${CONF}" == "memcached" ] && CONF='' - -if [ -n "${CONF}" ]; then - PIDFILE="${PIDBASE}-${PORT}.${CONF}.pid" - CONFSRC="${CONFBASE}.${CONF}" - if [ -f "${CONFSRC}" ]; then - source "${CONFSRC}" - else - eerror "The configuration file $CONFSRC was not found!" - fi -else - PIDFILE="${PIDBASE}-${PORT}.pid" - CONFSRC="${CONFBASE}" -fi - -depend() { - need net -} - -checkconfig() { - if [ -z "${LISTENON}" ]; then - ewarn "You should edit $CONFSRC and specify an address to listen on." - ewarn "Listening on any address (check your firewall!)" - fi -} - -start() { - if [ -n "${CONF}" ]; then - ebegin "Starting memcached (${CONF})" - else - ebegin "Starting memcached" - fi - checkconfig - local dir="$(dirname ${PIDFILE})" - if [ ! -d "${dir}" ]; then - einfo " Creating ${dir}" - mkdir -p "${dir}" - fi - chown ${MEMCACHED_RUNAS} "${dir}" - if [ -f "${PIDFILE}" ]; then - einfo " Removing stale pidfile ${PIDFILE}" - rm -f "${PIDFILE}" 1>/dev/null - fi - - if [ -z "${LISTENON}" ]; then - c_LISTENON="" - else - c_LISTENON="-l ${LISTENON}" - fi - - /sbin/start-stop-daemon --start --pidfile "${PIDFILE}" \ - --exec "${MEMCACHED_BINARY}" -- \ - -d -p ${PORT} ${c_LISTENON} -m ${MEMUSAGE} \ - -c ${MAXCONN} -u ${MEMCACHED_RUNAS} -P "${PIDFILE}" \ - ${MISC_OPTS} - eend $? -} - -stop() { - if [ -n "${CONF}" ]; then - ebegin "Stopping memcached (${CONF})" - else - ebegin "Stopping memcached" - fi - start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" - rm -f "${PIDFILE}" - eend $? -} |