#! /bin/sh # $Id: pop3d.rc.in,v 1.17 2008/05/04 13:12:47 mrsam Exp $ # # Copyright 1998 - 2005 Double Precision, Inc. # See COPYING for distribution information. prefix= exec_prefix=/usr bindir=${exec_prefix}/bin libexecdir=/usr/local/courier if test ! -f /etc/pop3d then echo "/etc/pop3d does not exist, forgot make install-configure?" exit 1 fi if test ! -f /etc/pop3d-ssl then echo "/etc/pop3d-ssl does not exist, forgot make install-configure?" exit 1 fi . /etc/pop3d-ssl . /etc/pop3d case $1 in start) /usr/bin/env -i /bin/sh -c " set -a ; prefix= ; exec_prefix=/usr ; bindir=${exec_prefix}/bin ; libexecdir=/usr/local/courier ; . /etc/pop3d-ssl ; \ . /etc/pop3d ; \ PROXY_HOSTNAME=$PROXY_HOSTNAME ; \ TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \ DRACHOST=${DRACHOST:-localhost} ; \ /usr/sbin/courierlogger -pid=$PIDFILE -start $LOGGEROPTS \ /usr/local/courier/couriertcpd -address=$ADDRESS \ -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \ $TCPDOPTS \ $PORT ${exec_prefix}/sbin/pop3login \ ${exec_prefix}/bin/pop3d ${MAILDIRPATH}" ;; stop) /usr/sbin/courierlogger -pid=$PIDFILE -stop ;; esac exit 0