Improve statusproc output when process is not running
[hvlinux.git] / stage5 / bootscripts / clamav
index 32f32a0..4ecc4f0 100755 (executable)
@@ -9,7 +9,7 @@ SOCKET_DIR="/var/run/clamav"
 
 start()
 {
-    if statusproc clamd | grep -q "not running"; then
+    if statusproc clamd | grep -q "stopped"; then
        # Not taking any chances, removing left-over files
        rm -f ${SOCKET_DIR}/clamd.{sock,pid} || return 1
     fi
@@ -17,7 +17,7 @@ start()
 
     sleep 1
 
-    if statusproc clamav-milter | grep -q "not running"; then
+    if statusproc clamav-milter | grep -q "stopped"; then
        # Not taking any chances, removing left-over files
        rm -f ${SOCKET_DIR}/clmilter.sock || return 1
     fi