summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-06-21 14:44:22 +0000
committerLennart Poettering <lennart@poettering.net>2005-06-21 14:44:22 +0000
commit219241ab5223b705ade51485ea9227b0a6089c0d (patch)
tree60a227c4de61f0715bba21999555c95b339049e5
parent7005f3d52cce3992c42b8c1b10744c8e020e5086 (diff)
* 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
-rw-r--r--INSTALL37
-rw-r--r--avahi-daemon/static-services.c2
2 files changed, 28 insertions, 11 deletions
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);