#!/sbin/runscript # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ #checks #TODO: Should exit straight away and not show daemon as started if [ ! -f /etc/masqmail/masqmail.conf ] ; then echo "you have to configure masqmail first." exit 0 fi DAEMON_ARGS=-bd start() { ebegin "Starting masqmail" start-stop-daemon --start --quiet --exec /usr/sbin/masqmail -- $DAEMON_ARGS eend $? } stop() { ebegin "Stopping masqmail" start-stop-daemon --stop --quiet --exec /usr/sbin/masqmail eend $? }