On 01/01/2013 09:40 AM, Reindl Harald wrote:
Am 01.01.2013 15:36, schrieb Robert Moskowitz:
how do I find out what avahi services my server is advertising?
I installed avahi-tools and tried
avahi-browse -a (and -ac) and nothing was listed. I find it hard to believe that my system that has apache up and running is not advertising anything?
restart avahi-daemon and look in /var/log/messages
[root@fileserver:~]$ ls /etc/avahi/services/ insgesamt 4,0K -rw-r--r-- 1 root root 253 2012-05-22 15:07 afp.service ________________________________
[root@fileserver:~]$ > /var/log/messages
[root@fileserver:~]$ service avahi-daemon restart
[root@fileserver:~]$ cat /var/log/messages
Interesting. Thanks. Well only ssh.service is registered, nothing for apache. I did a grep on avahi, so if httpd starting triggered avahi, I am not seeing anything other than an error in httpd/error_log....
Jan 1 15:39:21 fileserver avahi-daemon[4817]: Got SIGTERM, quitting. Jan 1 15:39:21 fileserver avahi-daemon[4817]: Leaving mDNS multicast group on interface eth0.IPv4 Jan 1 15:39:21 fileserver avahi-daemon[4817]: avahi-daemon 0.6.31 exiting. Jan 1 15:39:21 fileserver avahi-daemon[11736]: Process 4817 died: No such process; trying to remove PID file. (/var/run/avahi-daemon//pid) Jan 1 15:39:21 fileserver avahi-daemon[11736]: Found user 'avahi' (UID 499) and group 'avahi' (GID 498).
Jan 1 15:39:21 fileserver avahi-daemon[11736]: Successfully dropped root privileges. Jan 1 15:39:21 fileserver avahi-daemon[11736]: avahi-daemon 0.6.31 starting up. Jan 1 15:39:21 fileserver avahi-daemon[11736]: Successfully called chroot(). Jan 1 15:39:21 fileserver avahi-daemon[11736]: Successfully dropped remaining capabilities. Jan 1 15:39:21 fileserver avahi-daemon[11736]: Loading service file /services/afp.service. Jan 1 15:39:21 fileserver avahi-daemon[11736]: Joining mDNS multicast group on interface eth0.IPv4 Jan 1 15:39:21 fileserver avahi-daemon[11736]: New relevant interface eth0.IPv4 for mDNS. Jan 1 15:39:21 fileserver avahi-daemon[11736]: Network interface enumeration completed. Jan 1 15:39:21 fileserver avahi-daemon[11736]: Registering new address record Jan 1 15:39:21 fileserver avahi-daemon[11736]: Registering HINFO record with values 'X86_64'/'LINUX'. Jan 1 15:39:22 fileserver avahi-daemon[11736]: Server startup complete. Host name is fileserver.local. Local service cookie is 2912753943. Jan 1 15:39:22 fileserver avahi-daemon[11736]: Service "fileserver" (/services/afp.service) successfully established.