[Dovecot] inetd config - dovecot doesn't exits
Is there any option for dovecot to exit when is unneded?
I mostly use dovecot via shell process (ie. something like /usr/sbin/dovecot --exec-mail imap)
But sometimes I want to use it remotely via tcp and I run dovecot via inetd.
--8<---------------cut here---------------start------------->8--- localhost:imap stream tcp nowait root /usr/sbin/tcpd /usr/lib/dovecot/imap-login --8<---------------cut here---------------end--------------->8---
in inetd.conf works good, but dovecot stays, even if all clients ended their connections. How can I make dovecot to exit after last client disconnects? KJ
-- Http://modnebzdury.wordpress.com/2009/10/01/niewiarygodny-list-prof-majewskiej-wprowadzenie/ Wiesz, tryb tekstowy w Linuksie ma się tak do DOSu jak F-117A do paralotni. (c) Dawid Kuroczko
On Thu, 2011-03-17 at 16:37 +0100, Kamil Jońca wrote:
Is there any option for dovecot to exit when is unneded?
No.
But sometimes I want to use it remotely via tcp and I run dovecot via inetd.
I guess you could write a cronjob that checks if any imap processes exist, and if not kills dovecot.
participants (2)
-
kjonca@o2.pl
-
Timo Sirainen