Directory disappears after reboot. (Draper Drake)

Ewan Mac Mahon ewan at
Sun Mar 5 22:38:07 UTC 2006

On Sun, Mar 05, 2006 at 10:24:54PM +0200, Alan McKinnon wrote:
> On Sunday, 5 March 2006 17:35, Derek Broughton wrote:
> > Holger (Admin) wrote: 

> >/var/run is _always_ cleared on boot.  So anything that needs a
> >directory to persist across boots should never use /var/run.
> That's then a bug and should be reported. There's no valid reason for 
> the init scripts to delete _everything_ in /var/run,
They don't delete anything - /var/run is a tmpfs memory backed
filesystem in Dapper so it can't store anything across a reboot.

> only the files need to be cleared - this is where .pid files and lock
> files tend to go.
The FHS says the files must be cleared, but it doesn't specify whether
directories must be kept or not. A tmpfs seems to be the simplest way to
ensure that everything gets cleaned out.

> It's a bit of a hack and will get obliterated with the next upgrade, 
> but it's easier than fiddling with the init scripts
There's a patch by Dennis Kaarsemaker attached to the bug report[1] in
malone, so applying that to a locally generated tor package (assuming
it's not actually made it into the repos yet) would be the best way to



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <>

More information about the ubuntu-users mailing list