diff options
author | Lisa M. Seelye <lisa@gentoo.org> | 2005-01-15 02:39:45 +0000 |
---|---|---|
committer | Lisa M. Seelye <lisa@gentoo.org> | 2005-01-15 02:39:45 +0000 |
commit | c791f6682d19dab03f178fd108c79fbb06230aa1 (patch) | |
tree | f992b42c12e0fa44f3dcb80d0954255f9882eaf1 /net-misc/memcached/files | |
parent | New version (Manifest recommit) (diff) | |
download | gentoo-2-c791f6682d19dab03f178fd108c79fbb06230aa1.tar.gz gentoo-2-c791f6682d19dab03f178fd108c79fbb06230aa1.tar.bz2 gentoo-2-c791f6682d19dab03f178fd108c79fbb06230aa1.zip |
version bump and substantial changes to init file. please test 1.1.12_rc1
Diffstat (limited to 'net-misc/memcached/files')
-rw-r--r-- | net-misc/memcached/files/1.1.12/conf | 25 | ||||
-rw-r--r-- | net-misc/memcached/files/1.1.12/init | 43 | ||||
-rw-r--r-- | net-misc/memcached/files/digest-memcached-1.1.12_rc1 | 1 |
3 files changed, 69 insertions, 0 deletions
diff --git a/net-misc/memcached/files/1.1.12/conf b/net-misc/memcached/files/1.1.12/conf new file mode 100644 index 000000000000..ab007298389b --- /dev/null +++ b/net-misc/memcached/files/1.1.12/conf @@ -0,0 +1,25 @@ +# Copyright 2003 Gentoo Technologies, Inc +# $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/files/1.1.12/conf,v 1.1 2005/01/15 02:39:45 lisa 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="nobody" + +#Specify maximum number of concurrent connections +#1024 is default +MAXCONN="1024" + +#Listen for connections on what address? +LISTENON="" + +#Listen for connections on what port? +PORT="11211" + +#PID file location +PIDFILE="/var/run/memcached/memcached-${PORT}.pid" diff --git a/net-misc/memcached/files/1.1.12/init b/net-misc/memcached/files/1.1.12/init new file mode 100644 index 000000000000..4eb573bd0a19 --- /dev/null +++ b/net-misc/memcached/files/1.1.12/init @@ -0,0 +1,43 @@ +#!/sbin/runscript +# $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/files/1.1.12/init,v 1.1 2005/01/15 02:39:45 lisa Exp $ + +depend() { + need net +} + +checkconfig() { + if [ -z "${LISTENON}" ]; then + eerror "Edit /etc/conf.d/memcached and specify an address to listen on." + return 1 + fi + +} + +start() { + ebegin "Starting memcached" + checkconfig || return 1 + local dir="$(dirname ${PIDFILE})" + if [ ! -d "${dir}" ]; then + einfo " Creating ${dir}" + mkdir "${dir}" + chown ${MEMCACHED_RUNAS} "${dir}" + fi + if [ -f ${PIDFILE} ]; then + einfo " Removing stale pidfile ${PIDFILE}" + rm -f ${PIDFILE} 1>/dev/null + fi + + /sbin/start-stop-daemon --start \ + --exec ${MEMCACHED_BINARY} --startas ${MEMCACHED_BINARY} -- \ + -d -p ${PORT} -l ${LISTENON} -m ${MEMUSAGE} \ + -c ${MAXCONN} -u ${MEMCACHED_RUNAS} -P ${PIDFILE} + eend $? +} + +stop() { + ebegin "Stopping memcached" + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} + rm -f ${PIDFILE} + eend $? +} + diff --git a/net-misc/memcached/files/digest-memcached-1.1.12_rc1 b/net-misc/memcached/files/digest-memcached-1.1.12_rc1 new file mode 100644 index 000000000000..20744406c282 --- /dev/null +++ b/net-misc/memcached/files/digest-memcached-1.1.12_rc1 @@ -0,0 +1 @@ +MD5 7d11048ac11429c5cfa76789f4d4472c memcached-1.1.12-rc1.tar.gz 114055 |