]> git.pld-linux.org Git - packages/clamav.git/commitdiff
- indent cosmetics
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 24 Mar 2009 08:12:58 +0000 (08:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clamav.init -> 1.18

clamav.init

index f3282c86962d6f6ef39f7e70a60d76fc436cff99..bcdc1ccb0afd613294d4ca8d33e57a27e0fdcba7 100644 (file)
 
 start() {
        # Check if the service is already running?
-       if [ ! -f /var/lock/subsys/clamd ]; then
-               msg_starting "Clam Antivirus daemon"
-               daemon --pidfile /var/run/clamav/clamd.pid /usr/sbin/clamd
-               RETVAL=$?
-               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/clamd
-       else
+       if [ -f /var/lock/subsys/clamd ]; then
                msg_already_running "Clam Antivirus daemon"
+               return
        fi
+
+       msg_starting "Clam Antivirus daemon"
+       daemon --pidfile /var/run/clamav/clamd.pid /usr/sbin/clamd
+       RETVAL=$?
+       [ $RETVAL -eq 0 ] && touch /var/lock/subsys/clamd
 }
 
 stop() {
-       if [ -f /var/lock/subsys/clamd ]; then
-               msg_stopping "Clam Antivirus daemon"
-               killproc --pidfile /var/run/clamav/clamd.pid clamd
-               rm -f /var/lock/subsys/clamd /var/run/clamav/clamd.pid >/dev/null 2>&1
-       else
+       if [ ! -f /var/lock/subsys/clamd ]; then
                msg_not_running "Clam Antivirus daemon"
+               return
        fi
+
+       msg_stopping "Clam Antivirus daemon"
+       killproc --pidfile /var/run/clamav/clamd.pid clamd
+       rm -f /var/lock/subsys/clamd /var/run/clamav/clamd.pid >/dev/null 2>&1
 }
 
 reload() {
This page took 0.034137 seconds and 4 git commands to generate.