#!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: opts="${opts} refreshstats" PID_FILE="/var/run/pootle/pid" depend () { need localmount after bootmisc after net } start () { ebegin "Starting Pootle" start-stop-daemon --start \ --exec /usr/bin/PootleServer \ --chuid=pootle:pootle \ -- --pidfile="$PID_FILE" -B \ ${POOTLE_OPTS} \ >> /var/log/pootle 2>&1 eend $? } stop () { ebegin "Stopping Pootle" start-stop-daemon --stop \ --pidfile "$PID_FILE" eend $? } refreshstats () { ebegin "Refreshing Pootle statistics" /usr/bin/PootleServer --refreshstats eend $? }