#!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: $ depend() { need net logger } checkconfig() { if [ ! -e /etc/dhid.conf ] ; then eerror "You need an /etc/dhid.conf file to run dhid" eerror "There is a sample conf file in /usr/share/doc/dhid" return 1 fi } start() { checkconfig || return 1 ebegin "Starting dhid" start-stop-daemon --start --quiet --exec /usr/sbin/dhid -- -P /var/run/dhid.pid -p $PORT eend $? } stop() { ebegin "Stopping dhid" start-stop-daemon --stop --quiet --pidfile /var/run/dhid.pid eend $? }