Performance
Julian Field
MailScanner at ecs.soton.ac.uk
Wed Jan 31 13:00:42 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Steve Freegard wrote:
> You don't mention your which OS you are running - if it is a RedHat
> Clone then you can set:
>
> TMPDIR=/dev/shm
> export TMPDIR
What's the best way of adding this to the init.d script? (or
check_mailscanner)
If /dev/shm exists will it always be used as a tmpfs dir? It would be
simpler than remounting /tmp, which most users don't do. Personally I
think /tmp should always be tmpfs, like Solaris does.
So just this:
if [ -d /dev/shm ]; then
TMPDIR=/dev/shm
export TMPDIR
fi
in check_MailScanner should do the trick nicely, shouldn't it?
The init.d scripts call check_MailScanner, so there's only 1 place to be
modified.
Jules
- --
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.5.3 (Build 5003)
Comment: (pgp-secured)
Charset: UTF-8
wj8DBQFFwITvEfZZRxQVtlQRAihEAJ9tNfJtFzSSTo514os9dm3nukoiigCfavz2
KyFgtAaVIMWVNz+5S6oS4ck=
=wMk9
-----END PGP SIGNATURE-----
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk
More information about the MailScanner
mailing list