Using yaz_daemon rather than own code. Fixed bug #2060.