#!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ PIDFILE=${PIDFILE:-/var/run/schoolbell.pid} depend() { use net } start() { ebegin "Starting SchoolBell" start-stop-daemon --start --quiet --background --exec /usr/share/zproduct/schoolbell/schoolbell-server.py -- --config=/etc/schoolbell.conf eend $? } stop() { ebegin "Stopping SchoolBell" start-stop-daemon --stop --quiet --pidfile ${PIDFILE} eend $? }