Changed files:
apcupsd.init -> 1.5
apcupsd.sysconfig -> 1.1
exit 0
fi
+# Get service config
+if [ -f /etc/sysconfig/apcupsd ]; then
+ . /etc/sysconfig/apcupsd
+fi
+
RETVAL=0
# See how we were called.
case "$1" in
# Check if the service is already running?
if [ ! -f /var/lock/subsys/apcupsd ]; then
msg_starting "APC UPS monitoring"
- daemon /usr/sbin/apcupsd -f /etc/apcupsd/apcupsd.conf
+ daemon $SERVICE_RUN_NICE_LEVEL /usr/sbin/apcupsd -f /etc/apcupsd/apcupsd.conf
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/apcupsd
else
--- /dev/null
+# apcupsd startup configuration file
+
+# Try to define nice-level for running apcupsd
+SERVICE_RUN_NICE_LEVEL="+5"
+