[rbldnsd] rbldnsd and daemontools

Michael Tokarev mjt at tls.msk.ru
Mon Feb 16 17:34:30 MSK 2004


Thomas Vogt wrote:
> Hi
> 
> Perhaps it's bit off topic. 
> I'm running rbldnsd and it works fine. But if I use daemontools to
> control rbldnsd something goes wrong.
> 
> rbldnsd is alway starting twice. If I terminate the process with svc -d
> /service/rbldnsd it will terminate only one of this two processess.

Well I for one never used daemontools.  But at least may suggest to
try something...

> cat run
> #!/bin/sh
> echo rbldnsd
> exec /usr/local/sbin/rbldnsd -u bind:bind -b 127.0.0.1/20053 -c 15
> sbl-xbl.spamhaus.org:ip4set:root/files/sbl
> sbl-xbl.spamhaus.org:ip4set:root/files/xbl
> (is one single line)

By default rbldnsd goes to background, and daemontools
assumes it is "dead" and tries to re-exec it.
Try adding -n option, which tells rbldnsd to stop
backgrounding itself.

/mjt


More information about the rbldnsd mailing list