View previous topic :: View next topic |
Author |
Message |
Daivil n00b
Joined: 10 Oct 2004 Posts: 51
|
Posted: Fri Oct 05, 2012 2:03 pm Post subject: TmpFS /var/run + subdirectories |
|
|
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 |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Fri Oct 05, 2012 6:28 pm Post subject: |
|
|
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 |
|
|
Daivil n00b
Joined: 10 Oct 2004 Posts: 51
|
Posted: Sat Oct 06, 2012 12:58 pm Post subject: |
|
|
Where could I configure /var/run/ mounting options ? Is there a init script for that or config file ? |
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Sat Oct 06, 2012 1:28 pm Post subject: |
|
|
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 |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Sat Oct 06, 2012 1:53 pm Post subject: |
|
|
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 |
|
|
muhsinzubeir l33t
Joined: 29 Sep 2007 Posts: 948 Location: /home/muhsin
|
Posted: Mon Dec 10, 2012 11:05 pm Post subject: |
|
|
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 |
|
|
|