#!/sbin/runscript # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 extra_started_commands="reload" description_reload="Reload the seeks configuration" PIDFILE="/var/run/seeks.pid" depend() { need net } start() { ebegin "Starting Seeks" start-stop-daemon \ --start \ --pidfile /var/run/seeks.pid \ --exec /usr/bin/seeks \ -- ${SEEKS_ARGS} --pidfile ${PIDFILE} eend $? } stop() { ebegin "Stopping Seeks" start-stop-daemon \ --stop \ --exec /usr/bin/seeks \ --pidfile /var/run/seeks.pid eend $? } reload() { ebegin "Reloading configuration" start-stop-daemon \ --signal HUP \ --exec seeks \ --pidfile /var/run/seeks.pid eend $? }