[arch-general] [PATCHES] About /var/run/ and /var/lock/ checks in daemons
jan.spakula at gmx.com
Thu Feb 12 03:22:00 EST 2009
Excerpts from Jan de Groot's message of Thu Feb 12 08:59:41 +0100 2009:
> On Thu, 2009-02-12 at 05:51 -0200, Gerardo Exequiel Pozzi wrote:
> > I interested to make Arch Linux suitable for use with a /var/run and
> > /var/lock that are mounted as tmpfs. But this also helps, in the case
> > that not mounted as tmpfs, to make more simple "purge function" for
> > these directories at rc.sysinit step.
> > In my case this is "just for fun!", but other users can be benefited by
> > this, for example "netbook users".
> If this requires patching so many packages, and given the fact
> that /var/run on tmpfs is not default in archlinux, maybe you should try
> building /var/run from an initial directory or something like that. This
> is also what I use for my OpenBSD router which runs from compactflash
> and has /var mounted on ramdisk.
I have a setup on my netbook where the whole /var is mounted as tmpfs and
rsynced from and to real directory (/var-sync in my case) on boot/shutdown.
Patches to rc.sysinit and rc.shutdown follow. [Note that whenever you update
initscripts, you need to patch at least rc.shutdown before rebooting :)]
More information about the arch-general