#!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /var/cvsroot/gentoo-x86/net-mail/tpop3d/files/tpop3d-init,v 1.1 2003/08/03 04:44:34 iggy Exp $ depend() { need net } checkconfig() { if [ ! -e /etc/tpop3d/tpop3d.conf ] ; then eerror "You need an /etc/tpop3d/tpop3d.conf file to run tpop3d" return 1 fi } start() { checkconfig || return 1 ebegin "Starting tpop3d" start-stop-daemon --start --quiet --background \ --exec /usr/sbin/tpop3d -- -f /etc/tpop3d/tpop3d.conf eend $? } stop() { ebegin "Stopping tpop3d" start-stop-daemon --stop --quiet --exec /usr/sbin/tpop3d eend $? }