OT-ish: Best TMPFS solution on Debian
Hans Spaans
hans at dailystuff.nl
Tue Nov 27 19:41:13 CET 2012
Glenn Park schreef op 2012-11-24 23:51:
> Hello,
>
> I'm new to Debian and am trying to understand the Right way to make
> the default Debian amavis package (installed with aptitude) have its
> tmp directory in-memory.
>
> Is it acceptable to just do this after the installation has
> completed?
>
> service amavis stop
> rm -rf /var/lib/amavis/tmp/
> ln -s /dev/shm /var/lib/amavis/tmp
> service amavis start
>
> Thank you!
Why not just mount a tmpfs directly from your /etc/fstab instead of a
symlink?
$ grep amavis /etc/fstab
/dev/shm /var/lib/amavis/tmp tmpfs
noexec,nosuid,nodev,size=64m,mode=0770,uid=amavis,gid=amavis 0 0
Read the amavis documentation for the correct "size" value, but this
should work for most installations.
Hans
More information about the amavis-users
mailing list