Ticket #1992: avahidnsconfd.2.in

File avahidnsconfd.2.in, 1.0 KB (added by Robert L. Inglis, 14 years ago)
Line 
1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/avahi-dnsconfd
4#
5# Description : Avahi mDNS/DNS Server Configuration Daemon
6#
7# Authors : William Immendorf - will.immendorf@gmail.com
8#
9# Version : 00.00
10#
11# Notes : Based off of the LFS 6.4 sysklogd script.
12#
13########################################################################
14
15. /etc/sysconfig/rc
16. ${rc_functions}
17
18case "${1}" in
19 start)
20 boot_mesg "Starting the Avahi mDNS/DNS-SD Server Configuration daemon..."
21 loadproc avahi-dnsconfd -D
22 ;;
23
24 stop)
25 boot_mesg "Stopping the Avahi mDNS/DNS-SD Server Configuration daemon..."
26 avahi-dnsconfd -k
27 evaluate_retval
28 ;;
29
30 reload)
31 boot_mesg "Reloading the Avahi mDNS/DNS-SD Server Configuration daemon..."
32 reloadproc avahi-dnsconfd -r
33 ;;
34 restart)
35 ${0} stop
36 sleep 1
37 ${0} start
38 ;;
39
40 status)
41 statusproc avahi-dnsconfd
42 ;;
43 *)
44 echo "Usage: ${0} {start|stop|reload|restart|status}"
45 exit 1
46 ;;
47esac
48
49# End $rc_base/init.d/avahi-dnsconfd