From: Lennart Poettering Date: Tue, 21 Jun 2005 14:44:22 +0000 (+0000) Subject: * Improve error message when /etc/avahi/services is not available X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=219241ab5223b705ade51485ea9227b0a6089c0d;p=catta * Improve error message when /etc/avahi/services is not available * improve INSTALL file git-svn-id: file:///home/lennart/svn/public/avahi/trunk@138 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/INSTALL b/INSTALL index a004758..5db5545 100644 --- a/INSTALL +++ b/INSTALL @@ -1,10 +1,27 @@ -* Quick install instructions (tested on debian/ubuntu only!) -./bootstrap.sh -./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var -make -make install -/etc/init.d/dbus-1 restart - -* Note: -On other linux distributions, the dbus initscript may be different (eg redhat /etc/init.d/messagebus). -You need to restart dbus to make it knows about /etc/dbus-1/system.d/avahi-dbus.conf . \ No newline at end of file +*** Quick install instructions (tested on debian/ubuntu only!) *** + +$ ./bootstrap.sh + (this will run autoconf/automake and finally ./configure + --prefix=/usr --sysconfdir=/etc --localstatedir=/var) + +$ make +# make install + +# addgroup --system avahi +# adduser --system --no-create-home --ingroup avahi avahi + (These commands are Debian specific and may be different on other + distributions) + +# /etc/init.d/dbus-1 restart + (This whill restart DBUS and avahi too) + +While "make" and "boostrap.sh" may be run as normal users all other commands +need to be run is root. + +*** Note *** + +On other linux distributions, the dbus initscript may be different (eg redhat +/etc/init.d/messagebus). You need to restart dbus to make it know about +/etc/dbus-1/system.d/avahi-dbus.conf . + +$Id$ diff --git a/avahi-daemon/static-services.c b/avahi-daemon/static-services.c index 898edf3..4e97299 100644 --- a/avahi-daemon/static-services.c +++ b/avahi-daemon/static-services.c @@ -591,7 +591,7 @@ void static_service_load(void) { memset(&globbuf, 0, sizeof(globbuf)); if (glob(AVAHI_SERVICE_DIRECTORY "/*.service", GLOB_ERR, NULL, &globbuf) != 0) - avahi_log_error("glob() failed.\n"); + avahi_log_error("Failed to read service directory."); else { for (p = globbuf.gl_pathv; *p; p++) load_file(*p);