Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 180374 Details for
Bug 257044
memcachedb-1.2.0.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
init.d script for memcachedb
init (text/plain), 2.33 KB, created by
Michael Platov
on 2009-01-31 07:22:47 UTC
(
hide
)
Description:
init.d script for memcachedb
Filename:
MIME Type:
Creator:
Michael Platov
Created:
2009-01-31 07:22:47 UTC
Size:
2.33 KB
patch
obsolete
>#!/sbin/runscript ># $Header: $ > >CONF="${SVCNAME#*.}" >CONFBASE="/etc/conf.d/memcachedb" > >[ -z "${PIDBASE}" ] && PIDBASE="/var/run/memcachedb/memcachedb" >[ "${CONF}" == "memcachedb" ] && CONF='' > >if [ -n "${CONF}" ]; then > PIDFILE="$(dirname ${PIDBASE})/${CONF}-${PORT}.pid" > DBFILE="data.db" > CONFSRC="$(dirname ${CONFBASE})/${CONF}" > if [ -f "${CONFSRC}" ]; then > source "${CONFSRC}" > else > eerror "The configuration file $CONFSRC was not found!" > fi >else > PIDFILE="${PIDBASE}-${PORT}.pid" > DBFILE="data.db" > 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 memcachedb (${CONF})" > else > ebegin "Starting memcachedb" > fi > checkconfig > > local dir="$(dirname ${PIDFILE})" > if [ ! -d "${dir}" ]; then > einfo " Creating ${dir}" > mkdir -p "${dir}" > fi > > chown ${MEMCACHEDB_RUNAS} "${dir}" > if [ -f "${PIDFILE}" ]; then > einfo " Removing stale pidfile ${PIDFILE}" > rm -f "${PIDFILE}" 1>/dev/null > fi > > local dir="$(dirname ${DBBASE})" > if [ ! -d "${dir}" ]; then > einfo " Creating ${dir}" > mkdir -p "${dir}" > chown ${MEMCACHEDB_RUNAS} "${dir}" > fi > > if [ -z "${LISTENON}" ]; then > c_LISTENON="" > else > c_LISTENON="-l ${LISTENON}" > fi > > /sbin/start-stop-daemon --start --pidfile "${PIDFILE}" \ > --exec "${MEMCACHEDB_BINARY}" \ > --startas "${MEMCACHEDB_BINARY}" -- \ > -d -p ${PORT} ${c_LISTENON} -m ${BDB_CACHE_SIZE} \ > -c ${MAXCONN} -u ${MEMCACHEDB_RUNAS} -P "${PIDFILE}" \ > -A ${PAGE_SIZE} -C ${CHECKPOINT_PERIOD} \ > -H ${DBBASE} -f ${DBFILE} \ > ${MISC_OPTS} > eend $? >} > >stop() { > if [ -n "${CONF}" ]; then > ebegin "Stopping memcachedb (${CONF})" > else > ebegin "Stopping memcachedb" > 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 257044
:
180368
|
180370
|
180372
| 180374