Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 132692 Details for
Bug 194868
net-misc/memcached init -> multi (conf.d, init script included)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
new init script - /etc/init.d/memcached
memcached.init.txt (text/plain), 2.15 KB, created by
Walter
on 2007-10-06 00:23:01 UTC
(
hide
)
Description:
new init script - /etc/init.d/memcached
Filename:
MIME Type:
Creator:
Walter
Created:
2007-10-06 00:23:01 UTC
Size:
2.15 KB
patch
obsolete
>#!/sbin/runscript ># $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/files/1.1.13/init,v 1.1 2007/03/31 19:03:18 robbat2 Exp $ > >CONFDIR="/etc/openvpn" >CONF="${SVCNAME#*.}" >if [ -n "${CONF}" ] && [ "${CONF}" != "memcached" ]; then > PIDFILE="/var/run/memcached/memcached.${CONF}.pid" > CONFSRC="/etc/conf.d/memcached.${CONF}" > if [ -f $CONFSRC ]; then > source $CONFSRC > else > eerror "The configuration file $CONFSRC was not found!" > fi >else > PIDFILE="/var/run/memcached/memcached.pid" > CONFSRC="/etc/conf.d/memcached" >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 (I hope your firewall is set up properly)" > fi > >} > >start() { > if [ -n "${CONF}" ] && [ "${CONF}" != "memcached" ]; 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} --startas ${MEMCACHED_BINARY} -- \ > -d -p ${PORT} ${c_LISTENON} -m ${MEMUSAGE} \ > -c ${MAXCONN} -u ${MEMCACHED_RUNAS} -P ${PIDFILE} ${MISC_OPTS} > eend $? >} > >stop() { > if [ -n "${CONF}" ] && [ "${CONF}" != "memcached" ]; then > ebegin "Stopping memcached (${CONF})" > else > ebegin "Stopping memcached" > fi > start-stop-daemon --stop --quiet --pidfile ${PIDFILE} > rm -f ${PIDFILE} > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 194868
: 132692