View Single Post

   
  #8 (permalink)  
Old 05-16-2008, 01:38 PM
+Alan Hicks+
 
Posts: n/a
Default Re: What is equivalent to /etc/rc.sh ?

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

On 2008-05-13, Steven Woody <narkewoody@gmail.com> wrote:
> What I want to do in /etc/rc.sh is
> to prepare stuffs for a tmps, my /var is actually a symbol link
> pointing to /tmpfs/var.


This is IMHO a very bad idea. /var shouldn't be on a tmpfs as it is
the storage place for a number of very important things[0]. tmpfs is
specifically designed to be a very fast filesystem for things that need
to be read and written quite a lot, but can be disposed of at a whim
without hurting anything.

If your system needs to read and write to /var enough that you would
see a benefit in using tmpfs, then your system probably *needs* to keep
those things after a reboot and tmpfs just wouldn't be for you.

[0] By default, /var is where any webpages, any e-mail, and all your
logs are stored. For a desktop system, it may be sufficient to put
/var on a tmpfs, but you won't be able to trace back any logs after a
reboot.

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkgp7WQACgkQrZS6hX/gvjrj5gCguvuB2uxDL3+6DyXCzncMGEHk
b/0AniRkbN8eLGBa9PxpH9iYH+fa6WSK
=W2AH
-----END PGP SIGNATURE-----
Reply With Quote