]> git.pld-linux.org Git - packages/clamav.git/commitdiff
- use --pidfile for killproc
authorTomasz Pala <gotar@pld-linux.org>
Fri, 8 Apr 2005 12:32:48 +0000 (12:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clamav.init -> 1.9

clamav.init

index 8fcdba0989518630cf5935ac23f443e20741bf7d..75b5fb07fe120e37d8b7cbb015e7f19400e4c803 100644 (file)
@@ -27,21 +27,21 @@ case "$1" in
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/clamd ]; then
                msg_starting clamd
-               daemon /usr/sbin/clamd 
+               daemon /usr/sbin/clamd
                RETVAL=$?
-               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/clamd               
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/clamd
        else
                msg_already_running clamd
        fi
        ;;
   stop)
-        if [ -f /var/lock/subsys/clamd ]; then
+       if [ -f /var/lock/subsys/clamd ]; then
                msg_stopping clamd
-               killproc clamd
+               killproc --pidfile clamav/clamd.pid clamd
                rm -f /var/run/clamav/clamd.pid /var/lock/subsys/clamd >/dev/null 2>&1
        else
                msg_not_running clamd
-       fi      
+       fi
        ;;
   restart)
        $0 stop
This page took 0.141852 seconds and 4 git commands to generate.