start() { if [ "${START_CLAMD}" = "yes" ]; then if [ -f "/tmp/clamd" ]; then rm -f /tmp/clamd fi ... should be ... start() { if [ "${START_CLAMD}" = "yes" ]; then if [ -S "/tmp/clamd" ]; then rm -f /tmp/clamd fi -f returns false if the item is a socket (which /tmp/clamd is). You want to use -S
Created attachment 27847 [details, diff] Patch to fix the bug This patch fixes the bug. It checks for the existance of /tmp/clamd, without the requirement that it's a regular file.
This has been fixed although I think it has problems see bug #56805
markign fixed.
*** Bug 61635 has been marked as a duplicate of this bug. ***