[arch-general] [PATCHES] About /var/run/ and /var/lock/ checks in daemons
juantascon at gmail.com
Sun Feb 15 00:43:36 EST 2009
I think that what Gerardo wanted to say is to make POSSIBLE (and
optional) the mount of /va/lock /var/run and /tmp as tmpfs, right now
you cannot do it because many startup script doesnt create their own
directories specially for /var/run
the idea is change those script so you can start your system with an
empty /var/run (and friends) in this case you may (not have) change
some lines in fstab to mount /var/run as tmpfs
the advantages of this is that you can increase the life of some
netbooks (the SD harddrive have limited writings)
On Sun, Feb 15, 2009 at 12:39 AM, Kristoffer Fossgård <kfs1 at online.no> wrote:
> tmpfs used to be used for /tmp before, the reason it got removed as
> tmpfs was that a tmpfs would get clogged and also had to be setup
> in /etc/fstab which many others didn't know how to do or did
> incorrectly, thus leading to lots of difficulties for users. I can't
> remember exactly, but it was something like this. It was thus decided
> that the most KISS thing to do was to just have it as a normal dir.
> Noone remembers this?
> The moment you expand the system is the moment you introduce another
> thing to learn...
>>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. :)
>>** Actually work OK (/var/run)
>>** Patched RC files (/var/run)
>> extra/hal-0.5.11-7 (patched for policykit)
>> extra/policykit-0.9-7 (no rc-script here, patched in hal)
>>** Researched (/var/run)
>> extra/iptraf-3.0.0-2 (Trivial patch for iptraf.c or using a
>> profile.d/iptraf for creating a "iptraf()" or another
>> * Apparently these don't use /var/run/program-name-directory, but
>> maybe a simple "mkdir" to rc-script for precaution.
>> extra/bftpd-2.3-1 (The daemon uses directly /var/run/bftpd.pid)
>> extra/networkmanager-0.7.0-1 (The daemon uses directly
>> extra/wesnoth-1.4.7-1 (this game don't have a rc-script for the
>>daemon, if run the /usr/bin/wesnothd without /var/run/wesnothd it
>>fails, solution: provide a rc-script)
>>** Pending for research (/var/run)
>>** Pending for research (/var/lock)
More information about the arch-general