The script is /etc/init.d/loggerhead (mode 755):
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
PIDFILE=/var/run/loggerhead.pid
LOGDIR=/var/log/loggerhead
depend() {
need net
}
start() {
ebegin "Starting loggerhead"
start-stop-daemon --start --quiet --background \
--make-pidfile --pidfile ${PIDFILE} \
--exec /usr/bin/serve-branches -- --log-folder=${LOGDIR} \
${LOGGERHEAD_OPTS}
eend $?
}
stop() {
ebegin "Stopping loggerhead"
start-stop-daemon --stop --quiet \
--pidfile ${PIDFILE}
eend $?
}This uses a single entry from /etc/conf.d/loggerhead:
LOGGERHEAD_OPTS="/var/bzr"
It seems to work. When I get the chance I may patch the ebuild to include it and suggest it to the maintainer.
Anonymous
November 19 2009, 20:17:44 UTC 2 years ago
Will be merged soon hopefully
https://code.launchpad.net/~gentoo-membe