The manpage gives a brief example of using mdnsctl to publish a service. The example is perhaps a little too brief.
From the name, and from the (of course, only roughly standardised) behaviour of other fooctl tools on various unixes, I expected that the mdnsctl publish command would communicate with the running daemon, adjust its configuration, and exit. The manpage, and its publish example, did not make me think otherwise. When I saw the process ‘hanging’, I went to the mdnsctl source to confirm that the main() did indeed intend to be in a forever-loop.
Looking at closed issue #6 , I can see that I am not the only one to be confused about this.
It would be good if the manpage (i) gave a slightly fuller explanation, which mentioned that the process is supposed to ‘hang’, that (ii) it's useful to redirect the output, and that (iii) there will indeed be one process per published service, by design.
The manpage gives a brief example of using
mdnsctlto publish a service. The example is perhaps a little too brief.From the name, and from the (of course, only roughly standardised) behaviour of other
fooctltools on various unixes, I expected that themdnsctl publishcommand would communicate with the running daemon, adjust its configuration, and exit. The manpage, and itspublishexample, did not make me think otherwise. When I saw the process ‘hanging’, I went to themdnsctlsource to confirm that themain()did indeed intend to be in a forever-loop.Looking at closed issue #6 , I can see that I am not the only one to be confused about this.
It would be good if the manpage (i) gave a slightly fuller explanation, which mentioned that the process is supposed to ‘hang’, that (ii) it's useful to redirect the output, and that (iii) there will indeed be one process per published service, by design.