Discussion:
[Dovecot] starting with daemontools
Jens Gutzeit
2003-06-18 07:13:39 UTC
Permalink
Hi all,

I want to start dovecot through DJBs Daemontools-supervise, is there a
configuration option that lets dovecot stay in foreground?

best regards,
Jens
Timo Sirainen
2003-06-18 08:58:08 UTC
Permalink
Post by Jens Gutzeit
I want to start dovecot through DJBs Daemontools-supervise, is there a
configuration option that lets dovecot stay in foreground?
dovecot -F
Jens Gutzeit
2003-06-18 09:09:21 UTC
Permalink
Am 18 Jun 2003 03:58:04 +0300
Post by Timo Sirainen
Post by Jens Gutzeit
I want to start dovecot through DJBs Daemontools-supervise, is there
a configuration option that lets dovecot stay in foreground?
dovecot -F
Thanks. Seems that it isn't documented :)

Jens
Charlie Brady
2003-06-24 03:30:59 UTC
Permalink
Post by Jens Gutzeit
I want to start dovecot through DJBs Daemontools-supervise, is there a
configuration option that lets dovecot stay in foreground?
Here's my run file, which only uses the imap binary from dovecot, and does
connection control with tcpserver, auth by imapfront-auth, and SSL using a
modified stunnel (Scott Gifford's chroot/proxy patch):

#!/bin/sh

eval $(/usr/local/bin/envdir ./runenv /usr/bin/env)

exec 2>&1
# Ensure that PRNG is adequately seeded.
[ -s ./ssl/seed ] ||\
/usr/local/bin/envuidgid stunnel \
/bin/dd if=/dev/urandom of=./ssl/seed bs=1k count=1
exec \
softlimit -m "${ulimitdata:-20000000}" \
tcpserver -d \
-H \
-R \
-v \
-X \
-c "${concurrency:-20}" \
-x imap.tcprules.cdb \
0 imap \
makesock \
stunnel \
-/ ssl \
-s "$SSLUID" \
-g "$SSLGID" \
-N imap \
-i \
-R seed \
-p imapd.pem \
-n imap- \
-f \
-F 3 \
-makesock_connect_to \
/usr/local/bin/envdir ./imapfront.env \
/usr/bin/imapfront-auth \
"${imapdpath:-/usr/libexec/dovecot/imap}"


--
Charlie

Loading...