This may be a silly question but how to correctly stop dovecot and be sure that it's possible to start it again? kill -TERM `cat /var/run/dovecot/master.pid` doesn't work well. I have imap-login processes staying arround and occupying port which leads to Fatal: listen(0.0.0.0, 993) failed: Address already in use when trying to start again 2s after stopping. -- Arkadiusz Mi?kiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/
At 23:42 +0200 25/7/08, Arkadiusz Miskiewicz wrote:>This may be a silly question but how to correctly stop dovecot and be sure >that it's possible to start it again? > >kill -TERM `cat /var/run/dovecot/master.pid` doesn't work well. > >I have imap-login processes staying arround and occupying port which leads to >Fatal: listen(0.0.0.0, 993) failed: Address already in use >when trying to start again 2s after stopping.The key is '2s after stopping'. It'll take longer than that for a port to be released the default 'tidyup' way. This happens with all sorts of services on all sorts of Unixy systems. Maybe it's the fault of the app not tidying up as it terminates, but it's far from uncommon. David -- David Ledger - Freelance Unix Sysadmin in the UK. HP-UX specialist of hpUG technical user group (www.hpug.org.uk) david.ledger at ivdcs.co.uk www.ivdcs.co.uk
Arkadiusz Miskiewicz wrote on Fri, 25 Jul 2008 23:42:09 +0200:> This may be a silly question but how to correctly stop dovecot and be sure > that it's possible to start it again?depends on your operating system. /etc/init.d/dovecot stop should work on most Linuxes.> I have imap-login processes staying arround and occupying portAh, well, that's a different question! Stopping dovecot won't kill the processes with actual logins. -> killall imap-login Kai -- Kai Sch?tzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com