Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: /var/run mount
PostPosted: Wed Oct 28, 2009 10:55 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
I seem to lose a subdirectory in /var/run every time I reboot. I hadn't noticed before, but /var/run appears to be a special filesystem of some sort. Is this a xen thing that gets rebuilt on boot? Is there something I need to do to get a subdir to autocreate (other than just slapping a line into an RC file)?


Top
   
 Post subject:
PostPosted: Wed Oct 28, 2009 1:56 pm 
Offline
Senior Member
User avatar

Joined: Mon Dec 10, 2007 4:30 pm
Posts: 341
Website: http://markwalling.org
In my Ubuntu image:
Code:
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)


It is a distro specific thing.


Top
   
 Post subject:
PostPosted: Wed Oct 28, 2009 4:33 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
mwalling wrote:
In my Ubuntu image:
Code:
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)


It is a distro specific thing.


O I C. Weird that they do that different from debian. I guess this is technically a bug against the ubuntu package then.


Top
   
 Post subject:
PostPosted: Wed Oct 28, 2009 6:57 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
glg wrote:
mwalling wrote:
In my Ubuntu image:
Code:
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)


It is a distro specific thing.


O I C. Weird that they do that different from debian. I guess this is technically a bug against the ubuntu package then.

/var/run is not meant to persist over reboots. See the FileSystem Hierarchy Standard doc
http://www.pathname.com/fhs/pub/fhs-2.3 ... RIABLEDATA

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Wed Oct 28, 2009 9:06 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
sweh wrote:
glg wrote:
mwalling wrote:
In my Ubuntu image:
Code:
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)


It is a distro specific thing.


O I C. Weird that they do that different from debian. I guess this is technically a bug against the ubuntu package then.

/var/run is not meant to persist over reboots. See the FileSystem Hierarchy Standard doc
http://www.pathname.com/fhs/pub/fhs-2.3 ... RIABLEDATA


Nothing in that says that directories should be removed at boot, which is effectively what happens in ubuntu. I checked, and there already was a bug against the package. I just wrote something in rc.local to create the directory if it doesn't exist and give it correct perms.


Top
   
 Post subject:
PostPosted: Wed Oct 28, 2009 9:15 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
glg wrote:
sweh wrote:
glg wrote:
mwalling wrote:
In my Ubuntu image:
Code:
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)


It is a distro specific thing.


O I C. Weird that they do that different from debian. I guess this is technically a bug against the ubuntu package then.

/var/run is not meant to persist over reboots. See the FileSystem Hierarchy Standard doc
http://www.pathname.com/fhs/pub/fhs-2.3 ... RIABLEDATA


Nothing in that says that directories should be removed at boot, which is effectively what happens in ubuntu. I checked, and there already was a bug against the package. I just wrote something in rc.local to create the directory if it doesn't exist and give it correct perms.

Right, but since directories are just files (with a special bit set) the standard could be interpreted that way. FWIW RedHat (and thus CentOS, which I use) attempts to keep directories inside /var/run (but subdirectories of those may be lost). I wouldn't consider Ubuntu's behaviour a bug.

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Wed Oct 28, 2009 9:30 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
sweh wrote:
Right, but since directories are just files (with a special bit set) the standard could be interpreted that way. FWIW RedHat (and thus CentOS, which I use) attempts to keep directories inside /var/run (but subdirectories of those may be lost). I wouldn't consider Ubuntu's behaviour a bug.


nono, you misunderstand. Since ubuntu does it this way, any package that has a program that wants a subdir should check for/create that subdir if needed. This particular package does not. I checked for and found a bug against the particular package because it needs to be setup to make the subdir.


Top
   
 Post subject:
PostPosted: Wed Oct 28, 2009 10:43 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
glg wrote:
sweh wrote:
Right, but since directories are just files (with a special bit set) the standard could be interpreted that way. FWIW RedHat (and thus CentOS, which I use) attempts to keep directories inside /var/run (but subdirectories of those may be lost). I wouldn't consider Ubuntu's behaviour a bug.


nono, you misunderstand. Since ubuntu does it this way, any package that has a program that wants a subdir should check for/create that subdir if needed. This particular package does not. I checked for and found a bug against the particular package because it needs to be setup to make the subdir.

Oh, right. Yeah :-)

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group