[launchd-dev] Dynamic port listening

Hamish Allan hamish at gmail.com
Tue Nov 13 15:22:48 PST 2007


On Nov 12, 2007 10:51 PM, Hamish Allan <hamish at gmail.com> wrote:

> I need to register the [Bonjour] service as being on localhost rather than mymachine.local
> [...]
> Can I do anything about this?

To answer my own question: from examining the source code, it would
seem not. do_rendezvous_magic()'s call to DNSServiceRegister() is
currently hardcoded to advertise on all interfaces.

So to take another tack: is it possible to have launchd execute
arbitrary commands after binding to a port, with the addrinfo
available for substitution?

Thanks,
Hamish


More information about the launchd-dev mailing list