OpenSolaris

Discussions Communities Projects Download Source Browser

Home » OpenSolaris Forums » nwam » discuss

Thread: [nwam-discuss] How to properly register a discoverable service?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink 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

  Click to reply to this thread Reply

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


rishi

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

  Click to reply to this thread Reply

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

  Click to reply to this thread Reply

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





Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
Copyright © 1995-2005 Sun Microsystems, Inc.