*** Quick install instructions (tested on debian/ubuntu only!) ***
+While "make" and "boostrap.sh" may be run as normal users all other commands
+need to be run is root.
+
$ ./bootstrap.sh
(this will run autoconf/automake)
(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 .
+# kill -HUP `cat /var/run/dbus/pid`
+ (This will ask DBUS to re-read its policies)
+# /etc/dbus-1/event.d/75avahi-daemon start
-- To automatically start avahi-dnsconfd on Debian base distro:
+- To automatically start avahi-dnsconfd on Debian based distro:
# update-rc.d avahi-dnsconfd defaults 25 15
$Id$
* Quick start guide:
0) make sure you read the INSTALL file.
-1) start the deamon in background as root: avahi -D
-2) start the Gui to browse zeroconf network as your user: avahi-discover
+1) start the deamon in background as root: avahi-daemon -D
+Or (You shouldn't start avahi-daemon and avahi-discover at the same time.)
+1) start the Gui to browse zeroconf network as your user: avahi-discover
* Basic instructions to control the avahi deamon (as root):
-- starting it: avahi
-- starting it in background: avahi -D
-- stopping it: avahi -k
+- starting it: avahi-daemon
+- starting it in background: avahi-daemon -D
+- stopping it: avahi-daemon -k
dbusinitddir = $(sysconfdir)/init.d
-dbusinitd_SCRIPTS = avahi-daemon
+dbusinitd_SCRIPTS = avahi-daemon avahi-dnsconfd
EXTRA_DIST = $(dbusinitd_SCRIPTS)
#!/sbin/runscript
# Avahi ZeroConf Daemon init script
# Many thanks to the Avahi developer's and Sebastien Estienne
+# Author: Steev Klimaszewski <steev@steev.net>
DAEMON=/usr/bin/avahi-daemon
depend () {
- need dbus
+ need net
+ use dbus
}
start() {
--- /dev/null
+#! /bin/sh
+#
+# avahi-dnsconfd avahi dns configuration daemon
+# Daemon for ZeroConf
+#
+# Author: Steev Klimaszewski <steev@steev.net>
+
+DAEMON=/usr/bin/avahi-dnsconfd
+
+depend () {
+ need net
+ after avahi-daemon
+}
+
+start() {
+ ebegin "Starting avahi-dnsconfd"
+ $DAEMON -D
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping avahi-dnsconfd"
+ $DAEMON -k || /bin/true
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading avahi-dnsconfd"
+ $DAEMON -r
+ eend $?
+}