|
Replies:
2
-
Last Post:
Feb 24, 2009 8:30 AM
by: Nathan Fiedler
|
|
|
Nathan Fiedler
nathanfiedler@gmail....
|
|
|
|
[nwam-discuss] How to properly register a discoverable service?
Posted:
Feb 19, 2009 9:56 PM
|
|
While I can run this command `dns-sd -R chihiro _afpovertcp._tcp local 548` to register netatalk as an AFP server, it only lasts as long as that command keeps running (i.e. Ctrl-c ends the service registration). I'm struggling to find the proper way to permanently register this service so that it's always on, even after reboot.
Any hints?
Thanks
n _______________________________________________ nwam-discuss mailing list nwam-discuss at opensolaris dot org http://mail.opensolaris.org/mailman/listinfo/nwam-discuss
|
|
|
Posts:
89
From:
Registered:
3/6/06
|
|
|
|
Re: [nwam-discuss] How to properly register a discoverable service?
Posted:
Feb 23, 2009 9:16 AM
in response to: Nathan Fiedler
|
|
Nathan Fiedler wrote: > While I can run this command `dns-sd -R chihiro _afpovertcp._tcp local > 548` to register netatalk as an AFP server, it only lasts as long as > that command keeps running (i.e. Ctrl-c ends the service > registration). I'm struggling to find the proper way to permanently > register this service so that it's always on, even after reboot.
I am afraid there isn't an easy way to do this. You could create a script with the dns-sd command and add a new SMF service to automatically start it on boot (make it dependent on dns/multicast service).
You could also try creating a static service file in /etc/avahi/services/ but this is not documented and isn't a commited interface. You could post questions on making this a committed interface on desktop-discuss. For more info on this see here: http://avahi.org/download/avahi.service.5.xml
Rishi _______________________________________________ nwam-discuss mailing list nwam-discuss at opensolaris dot org http://mail.opensolaris.org/mailman/listinfo/nwam-discuss
|
|
|
|
Nathan Fiedler
nathanfiedler@gmail....
|
|
|
|
Re: [nwam-discuss] How to properly register a discoverable service?
Posted:
Feb 24, 2009 8:30 AM
in response to: rishi
|
|
Okay, sounds good. I came to that conclusion as well (to use SMF, that is), but forgot about the dependency on the multicast service.
Thanks
n
On Mon, Feb 23, 2009 at 9:16 AM, Rishi Srivatsavai <Rishi dot Srivatsavai at sun dot com> wrote: > I am afraid there isn't an easy way to do this. You could create a script > with the dns-sd command and add a new SMF service to automatically start it > on boot (make it dependent on dns/multicast service). > > You could also try creating a static service file in /etc/avahi/services/ > but this is not documented and isn't a commited interface. You could post > questions on making this a committed interface on desktop-discuss. > For more info on this see here: > http://avahi.org/download/avahi.service.5.xml _______________________________________________ nwam-discuss mailing list nwam-discuss at opensolaris dot org http://mail.opensolaris.org/mailman/listinfo/nwam-discuss
|
|
|
|
|