1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/avahi
4#
5# Description : Avahi daemon loader
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 daemon..."
21		loadproc avahi-daemon -D
22		;;
23
24	stop)
25		boot_mesg "Stopping the Avahi daemon..."
26		avahi-daemon -k
27		evaluate_retval
28		;;
29
30	reload)
31		boot_mesg "Reloading the Avahi daemon..."
32		reloadproc avahi-daemon -r
33		;;
34	restart)
35		${0} stop
36		sleep 1
37		${0} start
38		;;
39
40	status)
41		statusproc avahi-daemon
42		;;
43	*)
44		echo "Usage: ${0} {start|stop|reload|restart|status}"
45		exit 1
46		;;
47esac
48
49# End $rc_base/init.d/avahi
50