#!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ opts="reload" depend() { need net } start() { ebegin "Starting bandwidthd" start-stop-daemon --start --pidfile ${BANDWIDTHD_PID} \ --exec /usr/sbin/bandwidthd -- -p ${BANDWIDTHD_PID} \ -c ${BANDWIDTHD_CONF} -o ${BANDWIDTHD_DATA} eend $? } stop() { ebegin "Stopping bandwidthd" start-stop-daemon --stop --pidfile ${BANDWIDTHD_PID} \ --exec /usr/sbin/bandwidthd eend $? } reload() { ebegin "Reloading bandwidthd configuration" start-stop-daemon --stop --oknodo --pidfile /var/run/bandwidthd.pid \ --exec /usr/sbin/bandwidthd --signal HUP eend $? }