[Pkg-sysvinit-devel] Re: Moving /var/run to a tmpfs?
Kurt Roeckx
kurt at roeckx.be
Sat Sep 16 20:17:28 UTC 2006
On Sat, Sep 16, 2006 at 02:21:19PM -0500, Peter Samuelson wrote:
>
> [Kurt Roeckx]
> > Afaik, Ubuntu is already using this. As a result, I've actually got a
> > bug against my package submitted because it didn't handle it. My
> > package now recreates the directory from the init script if it's
> > missing, and I'm not really happy about that solution.
>
> Why not? 'mkdir -p' (or 'install -d' if you need a non-root owner or
> custom permissions) is a quick one-liner. I'd much rather my system
> didn't assume that /var/run or /tmp or /dev/shm will retain anything at
> all between reboots.
The FHS says we can create directories under /var/run that are
application specific. It also says that all files should be
removed or truncated. It does not say anything about directories
being removed.
On the other hand, about /tmp it very clear and says:
"Programs must not assume that any files or directories in /tmp
are preserve between invocations of the program."
If I create a directory in /var/run, I expect it to stay there. And if
I can't expect that, I'd like to see that documented somewhere.
kurt
More information about the Pkg-sysvinit-devel
mailing list