#!/bin/sh # IMAP Daemon # # chkconfig: 345 80 20 # description: IMAP 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= IMAPDSSLSTART="no" # Get service config [ -f /etc/sysconfig/courier-imap ] && . /etc/sysconfig/courier-imap # Check that networking is up. if is_no "${NETWORKING}" ; then msg_Network_Down "Courier IMAP" 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-imap ]; then msg_starting "Courier IMAP" ulimit -d $IMAP_ULIMITD /usr/bin/env - /bin/sh -c " . /etc/sysconfig/courier-imap ; \ IMAP_STARTTLS=$POP3DSTARTTLS ; export POP3_STARTTLS ; \ `sed -n '/^#/d;/=/p'