#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-mail/pop-before-smtp/files/pop-before-smtp.init,v 1.3 2004/07/14 23:51:57 agriffis Exp $ opts="reload" depend() { need net use logger dns ypbind provide mta } start() { ebegin "Starting pop-before-smtp" start-stop-daemon --start --pidfile /var/run/pop-before-smtp.pid --startas /usr/sbin/pop-before-smtp -- --daemon=/var/run/pop-before-smtp.pid eend $? } stop() { ebegin "Stopping postfix" start-stop-daemon --stop --pidfile /var/run/pop-before-smtp.pid eend $? } reload() { ebegin "Reloading postfix" /usr/sbin/postfix reload &>/dev/null eend $? }