-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,

I made a LFS-style bootscript for Avahi, because Manwell (the bootscript
maker) was out of action. This is just in case you need to include this
package in the book.

William
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknY6i0ACgkQoCo9f2PXIGYfuACgqOnUnxxS6LevV7wMACWMJT77
A/EAnAg/UF5nO95e//5L4iu0JbWCFnAT
=V8ux
-----END PGP SIGNATURE-----
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/avahi
#
# Description : Avahi daemon loader
#
# Authors     : William Immendorf - [email protected]
#
# 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

Attachment: avahi.sig
Description: PGP signature

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to