summaryrefslogtreecommitdiff
path: root/mail/clamav/files
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2007-06-15 22:31:39 +0000
committerwiz <wiz@pkgsrc.org>2007-06-15 22:31:39 +0000
commit174334c6be017115313586a9c83cebdb9876200e (patch)
treecff77ccdb99e0af230ed02317c7ba4b22d00705d /mail/clamav/files
parente57a27b67ccdd01010c772dffae7e7a8b46504df (diff)
downloadpkgsrc-174334c6be017115313586a9c83cebdb9876200e.tar.gz
Improvements for freshclamd script from Sergey Svishchev:
For some reason, the script creates the pid file itself, instead of using '-p' option to freshclamd. sig_stop=KILL seems unnecessary, too. Bump PKGREVISION.
Diffstat (limited to 'mail/clamav/files')
-rw-r--r--mail/clamav/files/freshclamd.sh12
1 files changed, 3 insertions, 9 deletions
diff --git a/mail/clamav/files/freshclamd.sh b/mail/clamav/files/freshclamd.sh
index 25bab124e2a..80b35c7679c 100644
--- a/mail/clamav/files/freshclamd.sh
+++ b/mail/clamav/files/freshclamd.sh
@@ -1,26 +1,20 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: freshclamd.sh,v 1.3 2006/06/20 20:24:45 jnemeth Exp $
+# $NetBSD: freshclamd.sh,v 1.4 2007/06/15 22:31:39 wiz Exp $
#
# PROVIDE: freshclamd
# REQUIRE: DAEMON LOGIN clamd
-
name="freshclamd"
rcvar=$name
command="@PREFIX@/bin/freshclam"
required_files="@PKG_SYSCONFDIR@/freshclam.conf"
-pidfile="@VARBASE@/run/${name}.pid"
-sig_stop="KILL"
+pidfile="@VIRUSDBDIR@/${name}.pid"
freshclamd_user="@CLAMAV_USER@"
freshclamd_flags=${freshclamd_flags:=-c 2}
-command_args="-d"
+command_args="-d -p $pidfile"
. /etc/rc.subr
load_rc_config $name
run_rc_command "$1"
-
-if [ "$1" != "stop" ]; then
- echo $(check_process $command) > $pidfile
-fi