* are...@buxtehude.debian.org <are...@buxtehude.debian.org> [180311 11:51]:
> When restarting pdns-recursor with the initscript, "/etc/init.d/pdns-recursor 
> restart", we sometimes get an Address already in use Exception:
> Mar 11 06:55:09 recurse01 pdns_recursor[30857]: Exception: Resolver binding 
> to server socket on port 53 for Address already in use 
> Whenever we run "/etc/init.d/pdns-recursor stop", wait a few seconds and 
> "/etc/init.d/pdns-recursor start" again it always works. 
> So it seems like a timing issue, being sometimes too fast starting 
> pdns-recursor again before the socket is completely closed. 

I imagine pdns-recursor doesn't quit fast enough, and the init
script may not do enough checking.

> ii  sysvinit-core                2.88dsf-59.9                   amd64        
> System-V-like init utilities

If you need a fix for this in stable, I'd suggest switching over to
systemd, which handles this situation just fine.


Reply via email to