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