diff options
author | Gabor Kovesdan <gabor@FreeBSD.org> | 2007-06-09 11:13:44 +0000 |
---|---|---|
committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2007-06-09 11:13:44 +0000 |
commit | a71333c3207fc4a5ecd932d8b12e4113928274aa (patch) | |
tree | d0c25fd4750d8c3477c41cedd1a50efca75787f6 /security/amavisd-new/files | |
parent | 6731121ab912b05d520c7a1fe8c12d0cbbf3830f (diff) |
Notes
Diffstat (limited to 'security/amavisd-new/files')
-rw-r--r-- | security/amavisd-new/files/amavisd.sh.in | 14 | ||||
-rw-r--r-- | security/amavisd-new/files/pkg-message.in | 4 |
2 files changed, 18 insertions, 0 deletions
diff --git a/security/amavisd-new/files/amavisd.sh.in b/security/amavisd-new/files/amavisd.sh.in index e27dfc84497a..3b920269966b 100644 --- a/security/amavisd-new/files/amavisd.sh.in +++ b/security/amavisd-new/files/amavisd.sh.in @@ -23,6 +23,20 @@ command=%%PREFIX%%/sbin/amavisd > /dev/null 2>&1 pidfile=%%AMAVISDIR%%/amavisd.pid required_files=%%PREFIX%%/etc/amavisd.conf +start_precmd=start_precmd + +# possible values include: amavisd_ram="512m" +# adds ram disk for amavisd defanging/decoding, speeds up large systems 10% +start_precmd() +{ +rm -rf %%AMAVISDIR%%/tmp/* %%AMAVISDIR%%/tmp/.* 2>/dev/null || true +if [ ${amavisd_ram} ];then + df %%AMAVISDIR%%/tmp | grep '^/dev/md' > /dev/null + if [ $? -eq 1 ];then + mdmfs -M -s ${amavisd_ram} -w %%AMAVISUSER%%:%%AMAVISGROUP%% md %%AMAVISDIR%%/tmp || true + fi +fi +} stop_postcmd=stop_postcmd stop_postcmd() diff --git a/security/amavisd-new/files/pkg-message.in b/security/amavisd-new/files/pkg-message.in index ee7bd2d5fe94..cc1192b7f84a 100644 --- a/security/amavisd-new/files/pkg-message.in +++ b/security/amavisd-new/files/pkg-message.in @@ -13,6 +13,10 @@ amavisd_enable="YES" + Optionally enable amavisd tmp ram disk with: (example 512k) + + amavisd_ram="512m" + If you have installed and want to use the amavis sendmail milter interface, you need the following additional line in /etc/rc.conf: |