[arch-general] [PATCHES] About /var/run/ and /var/lock/ checks in daemons

RedShift redshift at pandora.be
Sun Feb 15 02:16:53 EST 2009

Gerardo Exequiel Pozzi wrote:
> Hi people!
> 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".
> OK, i initially created rc-script patches for the packages in the extra
> repo that use /var/run/program-name-directory and fails if not exists.
> (these list was obtained with """ for x in $(find
> /usr/share/pkgtools/lists -type f); do egrep -l "var/run/.+" $x;done """
> @@NOTE@@: I will send the patches to the FL individualy per package now,
> reference to this email in FL, and then copy the links to response in
> this email. ;)
> Please review it, thanks in advance. :)

You are going about it the wrong way. Instead of putting mkdir's and touches all over the initscripts, modify /etc/rc.d/functions to take into account an empty /var/run and /var/lock.

For those who think it'll be advantageous for SSD's (for their lifetime), I don't see much writes in /var/run or /var/lock other than during startup.


More information about the arch-general mailing list