#!/bin/sh ######################################################################## # Begin $rc_base/init.d/avahi-autoipd # # Description : Avahi autoipd 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 Auto IP daemon..." loadproc avahi-autoipd -D -s ;; stop) boot_mesg "Stopping the Avahi Auto IP daemon..." avahi-autoipd -k evaluate_retval ;; reload) boot_mesg "Reloading the Avahi Auto IP daemon..." reloadproc avahi-autoipd -r ;; restart) ${0} stop sleep 1 ${0} start ;; status) statusproc avahi-autoipd ;; *) echo "Usage: ${0} {start|stop|reload|restart|status}" exit 1 ;; esac # End $rc_base/init.d/avahi-autoipd