aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-08 04:27:01 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-08 04:27:01 +0000
commita2a3208f1bc1d45c1eb1c10264d10d95dcff9a74 (patch)
tree2a2c6ea877153cb6b15eec6495013b317f27a6b4 /packages/spamd.inc
parent8f195a0680a66606804753821a57a1c0858c93a1 (diff)
downloadpfsense-packages-a2a3208f1bc1d45c1eb1c10264d10d95dcff9a74.tar.gz
pfsense-packages-a2a3208f1bc1d45c1eb1c10264d10d95dcff9a74.tar.bz2
pfsense-packages-a2a3208f1bc1d45c1eb1c10264d10d95dcff9a74.zip
Only mount fdescfs once
Diffstat (limited to 'packages/spamd.inc')
-rw-r--r--packages/spamd.inc4
1 files changed, 3 insertions, 1 deletions
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" .