3 # mDNSResponder: Starts the mDNSResponder Daemon
5 # This is an init script for Debian by Reed Hedges, based on the skeleton by
6 # Miguel van Smoorenburg and Ian Murdock, and based on the original mDNSResponder
9 PATH=/sbin:/bin:/usr/sbin:/usr/bin
10 DAEMON=/usr/sbin/mDNSResponder
12 DESC="Zeroconf service discovery responder"
13 PIDFILE=/var/run/${NAME}.pid
14 LOCKFILE=/var/lock/subsys/${NAME}
15 CONFIG=/etc/mdnsresponder/mDNSResponder.conf
17 test -x $DAEMON || exit 0
20 echo -n $"Starting $DESC: $NAME"
21 start-stop-daemon --start --quiet -u daemon --exec $DAEMON -- -f $CONFIG
26 echo -n $"Stopping $DESC: $NAME"
27 start-stop-daemon --stop --quiet --exec $DAEMON
28 test -f $LOCKFILE && rm -f $LOCKFILE
29 test -f $PIDFILE && rm -f $PIDFILE
40 # See how we were called.
52 echo $"Usage: $0 {start|stop|restart}"