#!/bin/sh
# description:	Advanced Configuration and Power Interface
#
# (c) 2004, Eko M. Budi, for Vector Linux
# Released under GNU GPL

# Include the functions declared in the /etc/rc.d/functions file
source /etc/rc.d/functions

# path to binary
ROOT="/usr/sbin"
# name of binary to run
APP="acpid"
#runtime options
OPT=""
#server name & description
SERVER="Advanced Config and Power Interface"

case "$1" in
        start)
                echon "Starting $SERVER............"
                loadproc $ROOT/$APP $OPT
                ;;
        stop)
                echon "Stopping $SERVER............"
                killproc $ROOT/$APP
                ;;
        reload)
                echon "Reloading $SERVER..........."
                reloadproc $ROOT/$APP
                ;;
        restart)
                $0 stop
                sleep 1
                $0 start
                ;;
        status)
                statusproc $ROOT/$APP
                ;;
        *)
                echo "Usage: $0 {start|stop|reload|restart|status}"
		return 1
        ;;
esac

