]> git.pld-linux.org Git - packages/apcupsd.git/blobdiff - apcupsd.init
- fixed build (spec syntax)
[packages/apcupsd.git] / apcupsd.init
index 31552d7c543f0936f9cd24760fd002a264cca80e..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
@@ -29,8 +34,8 @@ case "$1" in
        rm -f /etc/apcupsd/powerfail
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/apcupsd ]; then
-               show "Starting APC UPS monitoring"
-               daemon /usr/sbin/apcupsd -f /etc/apcupsd/apcupsd.conf
+               msg_starting "APC UPS monitoring"
+               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.080297 seconds and 4 git commands to generate.