#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/adk0212/src/cvs2svn/cvsrepo/apcupsd/platforms/gentoo/apcupsd.in,v 1.1 2002-09-14 12:03:18 rfacchetti Exp $

APCPID=@PIDDIR@/apcupsd.pid
APCUPSD=@sbindir@/apcupsd

start() {
	rm -f /etc/apcupsd/powerfail
	ebegin "Starting APC UPS daemon"
	start-stop-daemon --start --quiet --exec $APCUPSD -- 1>&2
	eend $?
}
 
stop() {
	ebegin "Stopping APC UPS daemon"
	start-stop-daemon --stop --quiet --pidfile $APCPID
	eend $?
} 
