diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-08 04:27:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-08 04:27:01 +0000 |
commit | a2a3208f1bc1d45c1eb1c10264d10d95dcff9a74 (patch) | |
tree | 2a2c6ea877153cb6b15eec6495013b317f27a6b4 /packages | |
parent | 8f195a0680a66606804753821a57a1c0858c93a1 (diff) | |
download | pfsense-packages-a2a3208f1bc1d45c1eb1c10264d10d95dcff9a74.tar.gz pfsense-packages-a2a3208f1bc1d45c1eb1c10264d10d95dcff9a74.tar.bz2 pfsense-packages-a2a3208f1bc1d45c1eb1c10264d10d95dcff9a74.zip |
Only mount fdescfs once
Diffstat (limited to 'packages')
-rw-r--r-- | packages/spamd.inc | 4 |
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" . |