summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-03-30 00:32:29 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-03-30 00:32:29 +0000
commitd3b184b7cfef6e09fb3c3ac860e7231a271fa819 (patch)
tree1a1ad1a97fcd929cbc91f3d050d8e8b45d2c98ac /mail
parent4e1b28d22c9ff8ca67e5caf2c94d6f3af8a54c55 (diff)
downloadpkgsrc-d3b184b7cfef6e09fb3c3ac860e7231a271fa819.tar.gz
Make sure the socket file is removed before starting clamd, as suggested
by Piotr Stolc in PR pkg/24644.
Diffstat (limited to 'mail')
-rw-r--r--mail/clamav/files/clamd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/clamav/files/clamd.sh b/mail/clamav/files/clamd.sh
index be5630a752d..be92df8a181 100644
--- a/mail/clamav/files/clamd.sh
+++ b/mail/clamav/files/clamd.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: clamd.sh,v 1.1 2004/02/02 00:00:48 recht Exp $
+# $NetBSD: clamd.sh,v 1.2 2004/03/30 00:32:29 xtraeme Exp $
#
# clamd does anti-virus checking.
#
@@ -33,6 +33,7 @@ stop_postcmd="clamd_postcmd"
clamd_precmd()
{
+ @RM@ -f ${socket}
@TOUCH@ ${pidfile}
@CHOWN@ ${clamd_user} ${pidfile}
}