[Pkg-sysvinit-devel] Re: Supporting tmpfs on /var/run

Thomas Hood jdthood at yahoo.co.uk
Wed Jan 4 10:27:29 UTC 2006


0. Don't initialize /var/run at all
1. Copy a skeleton dir to /var/run
2. Use dpkg-statoverride to store information needed for initializing /var/run


Henrique de Moraes Holschuh wrote:
> #0 can also potentially involve calls to dpkg-statoverride inside the
> initscripts if they are prepared for an ephemeral /var/run.


Yes.

Of course, in #0 it is up to the particular package maintainers to decide how
they want to create directories in /var/run.  They can use dpkg-statoverride,
but more likely they will just run "mkdir /var/run/foo".


> Since this is exactly what we are talking about, I think we should assume
> /var/run is tmpfs OR rm -rf'ed right after it is mounted for this thread.


Agreed.
-- 
Thomas



More information about the Pkg-sysvinit-devel mailing list