[arch-general] [PATCHES] About /var/run/ and /var/lock/ checks in daemons
Jan de Groot
jan at jgc.homeip.net
Thu Feb 12 02:59:41 EST 2009
On Thu, 2009-02-12 at 05:51 -0200, 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. :)
> ** 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 solution)
> * 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)
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.
More information about the arch-general