Avahi package won't start (with work around)



  • Avahi won't start from the gui and nothing is logged.  I was able to track down a few issues and resolve them from the command line.  I suspect the package needs some work for 2.2.

    /usr/local/etc/rc.d/avahi-daemon.sh :

    It looks for: /usr/pbi/avahi-amd64/sbin/avahi-daemon

    But avahi-daemon is installed at: /usr/pbi/avahi-amd64/local/sbin/avahi-daemon

    After fixing that path, I get this error:

    Shared object "libavahi-common.so.3" not found, required by "avahi-daemon"

    I resolved that with: ldconfig -m /usr/pbi/avahi-amd64/local/lib/

    Then: Failed to open file '/usr/local/etc/avahi/avahi-daemon.conf': No such file or directory

    Fixed that with: ln -s /usr/pbi/avahi-amd64/etc/avahi/avahi-daemon.conf avahi-daemon.conf

    The service runs now and I can control it from the GUI.  I'm sure this isn't the proper solution, but it worked for me.

    I also added executed these commands so the ldconfig is persistent across reboots:

    
    echo '#\!/bin/sh' > /usr/local/etc/rc.d/000-ldconfig.sh 
    echo '/sbin/ldconfig -m /usr/pbi/avahi-amd64/local/lib/' >> /usr/local/etc/rc.d/000-ldconfig.sh
    chmod a+x /usr/local/etc/rc.d/000-ldconfig.sh 
    

Log in to reply