courier-imap-4.0.6-r1-gentoo-imapd.rc 886 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. #
  3. # Copyright 1998 - 2000 Double Precision, Inc.
  4. # See COPYING for distribution information.
  5. prefix=/usr
  6. exec_prefix=/usr
  7. bindir=/usr/sbin
  8. libexecdir=/usr/GENTOO_LIBDIR/courier-imap
  9. source /etc/courier-imap/imapd-ssl
  10. source /etc/courier-imap/imapd
  11. ulimit -d ${IMAP_ULIMITD}
  12. IMAP_STARTTLS="${IMAPDSTARTTLS}"
  13. export IMAPDSTARTTLS IMAP_STARTTLS
  14. TLS_PROTOCOL="${TLS_STARTTLS_PROTOCOL}"
  15. eval `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd | \
  16. sed 's/=.*//;s/^/export /;s/$/;/'`
  17. eval `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd-ssl | \
  18. sed 's/=.*//;s/^/export /;s/$/;/'`
  19. eval ${PRERUN} ${libexecdir}/couriertcpd \
  20. -address=${ADDRESS} \
  21. -stderrlogger=${libexecdir}/courierlogger \
  22. -stderrloggername=imapd \
  23. -maxprocs=${MAXDAEMONS} -maxperip=${MAXPERIP} \
  24. -pid=${PIDFILE} ${TCPDOPTS} ${PORT} \
  25. ${bindir}/imaplogin \
  26. ${libexecdir}/courier-imapd.indirect "${MAILDIR}"