Very similar to the mysql incident
http://archives.mandrakelinux.com/expert/2002-12/msg00986.php
The apcupsd daemon will not start up at boot time.
# chkconfig --list apcupsd
apcupsd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
# more apcupsd
#! /bin/sh
#
# apcupsd This shell script takes care of starting and stopping
# the apcupsd UPS monitoring daemon.
#
# chkconfig: - 20 99
# description: apcupsd monitors power and takes action if necessary
#
APCPID=/var/run/apcupsd.pid
DISTVER=`cat /etc/mandrake-release | grep release | cut -f 5 -d ' '`
# Source function libarary
. /etc/rc.d/init.d/functions
if [ ! -x /sbin/apcupsd -o ! -r /etc/apcupsd/apcupsd.conf ]; then
exit 0
fi
case "$1" in
start)
rm -f /etc/apcupsd/powerfail
rm -f /etc/nologin
gprintf "Starting UPS monitoring:"
if [ "${DISTVER}" = "5.2" ] ; then
/sbin/apcupsd -f /etc/apcupsd/apcupsd.conf
else
/sbin/apcupsd -f /etc/apcupsd/apcupsd.conf && success ||
failure
fi
echo
touch /var/lock/subsys/apcupsd
;;
stop)
gprintf "Shutting down UPS monitoring:"
killproc apcupsd
echo
rm -f $APCPID
rm -f /var/lock/subsys/apcupsd
;;
restart|reload)
$0 stop
sleep 15
$0 start
;;
status)
/sbin/apcaccess status
;;
*)
gprintf "Usage: %s {start|stop|restart|reload|status}\n" "$0"
exit 1
;;
esac
exit 0
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com