#!/bin/sh
########################################################################
# Begin $rc_base/init.d/acpid
#
# Description : ACPI daemon init script
#
########################################################################

. /etc/sysconfig/rc
. ${rc_functions}

case "${1}" in
	start)
		boot_mesg "Starting ACPI daemon..."
		loadproc /usr/sbin/acpid > /dev/null 2>&1
		echo_ok;
		;;

	stop)
		boot_mesg "Stopping ACPI daemon..."
		killproc /usr/sbin/acpid
		;;

	restart)
		${0} stop
		sleep 1
		${0} start
		;;

	status)
		statusproc /usr/sbin/acpid
		;;

	*)
		echo "Usage: ${0} {start|stop|restart|status}"
		exit 1
		;;
esac

# End $rc_base/init.d/acpid
