3 Feb 09:14
Re: Avahi Signalling that it is going offline??
On Mon, Jan 30, 2012 at 12:39:27PM -0700, Nathanael D. Noblet wrote:
> Hello
>
> I have a few devices that have a .service file in
> /etc/avahi/services. It works well I can see the service etc.
> However my administration app which is using avahi to detect
> machines coming online/offline in a link-local setup never knows
> when they disappear because they are always there. The devices
> offering the service are portable so go to sleep and move around on
> the network. So I'm wondering if there is a way the avahi-daemon can
> signal that the service/device is going offline so I get the
> notifications? When I first started and had an actual app listening
> it was just somewhat built in when you unregistered, however now it
> never does that.
>
> I'm basically using the service to help detect when the devices are
> online since the service I want to use is always there when the
> devices are available. If that makes any sense.
Hi Nathanael,
For something similiar I'm just using avahi-browse and some ugly
bash-foo, don't know whether that's what you are looking for, too:
~~ snip ~~
#!/bin/sh
BROWSE_CMD="avahi-browse -p _snmp._tcp"
add_event() {
echo "add_event for $1"
(Continue reading)
RSS Feed