]> git.meshlink.io Git - catta/commitdiff
* Import debian init script changes from debian
authorTrent Lloyd <lathiat@bur.st>
Thu, 28 Dec 2006 16:54:26 +0000 (16:54 +0000)
committerTrent Lloyd <lathiat@bur.st>
Thu, 28 Dec 2006 16:54:26 +0000 (16:54 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1350 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

initscript/debian/avahi-daemon.in
initscript/debian/avahi-dnsconfd.in

index 3a68781f8b7a5fc6db3e2d6c900ff84475bb8010..553db781513c055e9ef21e76e086ad15f45efdb1 100755 (executable)
@@ -83,10 +83,19 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
 DESC="Avahi mDNS/DNS-SD Daemon"
 NAME="avahi-daemon"
 DAEMON="@sbindir@/$NAME"
+SCRIPTNAME=/etc/init.d/$NAME
 
 # Gracefully exit if the package has been removed.
 test -x $DAEMON || exit 0
 
+# don't start if /etc/default/avahi-daemon says so.
+AVAHI_DAEMON_START=1
+test -f /etc/default/avahi-daemon && . /etc/default/avahi-daemon
+
+if [ "$AVAHI_DAEMON_START" != "1" -a "$1" != "stop" ]; then
+    exit 0
+fi
+
 #
 #       Function that starts the daemon/service.
 #
index c7cbf05fa804204013e2c1a636cef52fcd365a8e..ee63e06730ffbcc64851deafa2a72408a11fbf66 100755 (executable)
@@ -83,10 +83,19 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
 DESC="Avahi Unicast DNS Configuration Daemon"
 NAME="avahi-dnsconfd"
 DAEMON="@sbindir@/$NAME"
+SCRIPTNAME=/etc/init.d/$NAME
 
 # Gracefully exit if the package has been removed.
 test -x $DAEMON || exit 0
 
+# don't start if /etc/default/avahi-dnsconfd says so.
+AVAHI_DNSCONFD_START=1
+test -f /etc/default/avahi-dnsconfd && . /etc/default/avahi-dnsconfd
+
+if [ "$AVAHI_DNSCONFD_START" != "1" -a "$1" != "stop" ]; then
+    exit 0
+fi
+
 #
 #       Function that starts the daemon/service.
 #