#!/bin/sh # POP3 Daemon # # chkconfig: 345 80 20 # description: POP3 Daemon # Source function library . /etc/rc.d/init.d/functions # Get network config . /etc/sysconfig/network ADDRESS=0.0.0.0 MAXPERIP=4 MAXDAEMONS=40 MAILDIR="Maildir" TCPDOPTS= POP3DSSLSTART="no" # Get service config [ -f /etc/sysconfig/courier-pop3 ] && . /etc/sysconfig/courier-pop3 # Check that networking is up. if is_no "${NETWORKING}" ; then msg_network_down "Courier POP3" exit 1 fi # See how we were called. case "$1" in start) # Check if the service is already running? if [ ! -f /var/lock/subsys/courier-pop3 ]; then # start authdaemon, if not running.. if [ ! -f /var/lock/subsys/authdaemon -a \ -x /etc/rc.d/init.d/authdaemon ]; then /etc/rc.d/init.d/authdaemon start RETVAL=$? if [ $RETVAL -ne 0 ]; then msg_starting "Courier POP3" fail exit 1 fi fi msg_starting "Courier POP3" /usr/bin/env - /bin/sh -c " . /etc/sysconfig/courier-pop3 ; \ POP3_STARTTLS=$POP3DSTARTTLS ; export POP3_STARTTLS ; \ `sed -n '/^#/d;/=/p'