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
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