Re: [PATCHES] About /var/run/ and /var/lock/ checks in daemons

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.

Glenn


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux