aboutsummaryrefslogtreecommitdiff
path: root/security/clamav/files/clamav-milter.sh
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2005-01-12 17:57:58 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2005-01-12 17:57:58 +0000
commit07ea270434786da53247810984b0bb92306294e2 (patch)
tree093e7e813e5a015e934dcb34992ee40171f47b56 /security/clamav/files/clamav-milter.sh
parent9e8cf22af25119845c29da3ffb2351b1c68c1bda (diff)
downloadports-07ea270434786da53247810984b0bb92306294e2.tar.gz
ports-07ea270434786da53247810984b0bb92306294e2.zip
Notes
Diffstat (limited to 'security/clamav/files/clamav-milter.sh')
-rw-r--r--security/clamav/files/clamav-milter.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/security/clamav/files/clamav-milter.sh b/security/clamav/files/clamav-milter.sh
index bd09f7ec0ac5..a69f974848c9 100644
--- a/security/clamav/files/clamav-milter.sh
+++ b/security/clamav/files/clamav-milter.sh
@@ -4,7 +4,7 @@
#
# PROVIDE: clamav-milter
-# REQUIRE: LOGIN
+# REQUIRE: LOGIN clamd
# BEFORE: mail
# KEYWORD: FreeBSD shutdown
@@ -22,6 +22,7 @@ name=clamav_milter
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/clamav-milter
+pidfile=%%RUNDIR%%/clamav-milter.pid
required_dirs=%%DBDIR%%
required_files=%%PREFIX%%/etc/clamd.conf
@@ -33,7 +34,7 @@ start_precmd()
warn "Stale socket $clamav_milter_socket removed."
rm "$clamav_milter_socket"
fi
- rc_flags="${flags:-$clamav_milter_flags} $clamav_milter_socket"
+ rc_flags="--pidfile ${pidfile} ${flags:-$clamav_milter_flags} $clamav_milter_socket"
}
# read settings, set default values