]> git.pld-linux.org Git - packages/apcupsd.git/blobdiff - apcupsd.init
- fixed build (spec syntax)
[packages/apcupsd.git] / apcupsd.init
index 2037aca22fe16272afc259c1259689a72916af07..f75e44b7420c5ec0f57521aba393cbc73fb91e62 100644 (file)
@@ -22,6 +22,11 @@ else
        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
@@ -30,7 +35,7 @@ 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
This page took 0.02875 seconds and 4 git commands to generate.