#!/sbin/runscript # $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/files/init,v 1.2 2006/04/04 14:07:55 lisa Exp $ depend() { need net } start() { ebegin "Starting memcached" /sbin/start-stop-daemon --start \ --pidfile ${PIDFILE} \ --exec ${MEMCACHED_BINARY} --pidfile /var/run/memcached.pid \ -- -d -p ${PORT} -l ${LISTENON} -m ${MEMUSAGE} \ -c ${MAXCONN} -u ${MEMCACHED_RUNAS} eend $? } stop() { ebegin "Stopping memcached" start-stop-daemon --stop --quiet --exec ${MEMCACHED_BINARY} rm -f /var/run/memcached.pid eend $? }