summaryrefslogtreecommitdiff
blob: 1a2b44dc6b09b2c3ca57e368d37abb796a7a9910 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-imap-4.0.6-r1-gentoo-pop3d.rc,v 1.2 2007/04/07 01:08:00 chtekk Exp $
#
# Copyright 1998 - 2000 Double Precision, Inc.
# See COPYING for distribution information.

prefix=/usr
exec_prefix=/usr
bindir=/usr/sbin
libexecdir=/usr/GENTOO_LIBDIR/courier-imap

source /etc/courier-imap/pop3d-ssl
source /etc/courier-imap/pop3d

POP3DSTARTTLS="${POP3_STARTTLS}"
export POP3_STARTTLS POP3DSTARTTLS
TLS_PROTOCOL="${TLS_STARTTLS_PROTOCOL}"

eval `sed -n '/^#/d;/=/p' </etc/courier-imap/pop3d | \
	sed 's/=.*//;s/^/export /;s/$/;/'`
eval `sed -n '/^#/d;/=/p' </etc/courier-imap/pop3d-ssl | \
	sed 's/=.*//;s/^/export /;s/$/;/'`

eval ${PRERUN} ${libexecdir}/couriertcpd \
	-address=${ADDRESS} \
	-stderrlogger=${libexecdir}/courierlogger \
	-stderrloggername=pop3d \
	-maxprocs=${MAXDAEMONS} -maxperip=${MAXPERIP} \
	-pid=${PIDFILE} ${TCPDOPTS} ${PORT} \
	${bindir}/pop3login \
	${libexecdir}/courier-pop3d.indirect "${MAILDIR}"