From a2a3208f1bc1d45c1eb1c10264d10d95dcff9a74 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 8 Nov 2008 04:27:01 +0000 Subject: Only mount fdescfs once --- packages/spamd.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/spamd.inc b/packages/spamd.inc index 56a9e268..502139f8 100644 --- a/packages/spamd.inc +++ b/packages/spamd.inc @@ -121,7 +121,9 @@ function sync_package_spamd() { } } $greyparms = " -G {$passtime}:{$greyexp}:{$whiteexp}"; - $start = "/sbin/mount -t fdescfs fdescfs /dev/fd\n" . + $start = "if [ `mount | grep -v grep | grep mount | wc -l` -lt 1 ]; then \h" . + "/sbin/mount -t fdescfs fdescfs /dev/fd\n" . + "fi\n" . "/usr/local/sbin/spamd-setup -d &\n" . "/sbin/pflogd &\n" . "/usr/local/libexec/spamd {$greyparms}{$identifier}{$greylisting}{$maxcon}{$maxblack}{$window}{$replysmtperror} 127.0.0.1 &\n" . -- cgit v1.2.3