using tmpfs files system

Julian Field MailScanner at ecs.soton.ac.uk
Thu Jun 28 21:58:54 IST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Hugo van der Kooij wrote:
> On Thu, 28 Jun 2007, Julian Field wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> You should put mount instructions in /etc/fstab. Just follow the other
>> mounts that are already there. You will probably find a line for
>> /dev/shm. Just copy that line, and change /dev/shm to
>> /var/spool/MailScanner/incoming. Don't comment out or delete the
>> original line, you want both of them!
>>
>> You can mount as many places as you like with tmpfs.
>>
>> Then it will be automatically mounted every time you reboot.
>> If you want to mount it immediately, after you have put it in /etc/fstab
>> then just issue the command
>>    mount /var/spool/MailScanner/incoming
>> with no other parameters. It will pull all the information it needs out
>> of /etc/fstab.
>>
>> Putting lines in rc.local is not the standard way of doing this! :-)
>
> The worst part is that you would mount a tmpfs AFTER starting 
> MailScanner.
>
> And changing working areas while a process is using them might lead to 
> failures.
Very true. Best to stop MailScanner before you do the mount command, and 
then start it again afterwards. I don't think I could guarantee its 
behaviour if you mount a new filesystem over the top of its working 
directories while it's running :-)

>
> Hugo.
>

Jules

- -- 
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.6.2 (Build 2014)
Charset: ISO-8859-1

wj8DBQFGhCEPEfZZRxQVtlQRApINAJ4muWDw7G91tHeactTfAtkNApIZ8ACgqFc2
UdtEwAG4zMEr6Fuv5+UewZI=
=Wjl+
-----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