Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TmpFS /var/run + subdirectories
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Daivil
n00b
n00b


Joined: 10 Oct 2004
Posts: 51

PostPosted: Fri Oct 05, 2012 2:03 pm    Post subject: TmpFS /var/run + subdirectories Reply with quote

Hello,

On new kernels, /var/run/ is now tmpfs.
This means that its cleaned at every (re)boot.

Some packages (such as puppet or heartbeat) are using subdirectories for PID files (/var/run/puppet/puppet.pid or /var/run/heartbeat/heartbeat.pid).
As you can imagine, after rebooting, these processes are unable to start and require (mkdir /var/run/puppet).


Why haven't packages been updated to fit with this new standard?
Can tmpfs /var/run/ be disabled? How are you handling this situation?


Thanks for your feedback,

Gaëtan
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Fri Oct 05, 2012 6:28 pm    Post subject: Reply with quote

As a temporary workaround, isn't it possible to mount a RAM disk with a predefined tree onto /var/run early after boot? (FYI, I'll run into that issue someday with wpa_supplicant IMHO as it also requires /var/run/wpa_supplicant/.)
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Daivil
n00b
n00b


Joined: 10 Oct 2004
Posts: 51

PostPosted: Sat Oct 06, 2012 12:58 pm    Post subject: Reply with quote

Where could I configure /var/run/ mounting options ? Is there a init script for that or config file ?
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sat Oct 06, 2012 1:28 pm    Post subject: Reply with quote

Daivil wrote:
Where could I configure /var/run/ mounting options ? Is there a init script for that or config file ?

Do you mean /var/run can no longer be controlled by /etc/fstab?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Sat Oct 06, 2012 1:53 pm    Post subject: Reply with quote

Which version of OpenRC do you have?

OpenRC 0.10 should be able to support tmpfiles.d, which will allow you to create the directory on boot.
_________________
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Back to top
View user's profile Send private message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Mon Dec 10, 2012 11:05 pm    Post subject: Reply with quote

VinzC wrote:
Daivil wrote:
Where could I configure /var/run/ mounting options ? Is there a init script for that or config file ?

Do you mean /var/run can no longer be controlled by /etc/fstab?


I have just completed setting up a gentoo box, and the first suprise was empty /etc/fstab and mounted tmpfs on /var/run.

Edit:
sys-apps/openrc-0.11.8:0
_________________
~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum