Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How is /run supposed to be set up correctly?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Nov 16, 2012 4:52 pm    Post subject: How is /run supposed to be set up correctly? Reply with quote

I'm having problems with two different machines that I let the /run auto-migration thing happen on. Several services aren't starting up due to not having permission to write pidfiles. This started after a reboot and going from 3.5.x to 3.6.x.

I've tried giving /run a mode=1777 in fstab (which seems to be completely ignored), and doing the same with chmod, but that only seems to make more things break. I don't have these problems on my desktop, but that's running a different set of services.
Back to top
View user's profile Send private message
wolfieh
n00b
n00b


Joined: 17 Nov 2009
Posts: 54

PostPosted: Tue Nov 20, 2012 7:36 pm    Post subject: Reply with quote

I just noticed the same. I would prefer to have it has /var/run, since on my setup / is an SSD drive, and /var is a regular hard disk. It was silently done, wouldn't have noticed if I didn't read rc.log
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Tue Nov 20, 2012 7:57 pm    Post subject: Reply with quote

/run is a tmpfs so it's irrelevant what kind of disk your / is.
Back to top
View user's profile Send private message
wolfieh
n00b
n00b


Joined: 17 Nov 2009
Posts: 54

PostPosted: Tue Nov 20, 2012 7:58 pm    Post subject: Reply with quote

Gusar wrote:
/run is a tmpfs so it's irrelevant what kind of disk your / is.

yes, just noticed. thanks
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Nov 20, 2012 8:38 pm    Post subject: Reply with quote

This seems to be related to bug 332633. That's been there for 2 years so I'm not sure why things only started breaking in the last month. Do I need to go file bugs for all affected packages?
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Tue Nov 20, 2012 10:28 pm    Post subject: Reply with quote

My problems have been with stuff like auditd, it is looking for /var/lock/subsys which symlinks to /run/lock/subsys.

Its not a permissions issue the subsys directory just doesn't exist.

I just added the following to the beginning of start() in the init script

fix_broken_auditd_init_script:
        if [ ! -d /var/lock/subsys ]; then
                mkdir /var/lock/subsys
        fi
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Tue Nov 20, 2012 11:10 pm    Post subject: Reply with quote

Creating dirs in /run is a job for tmpfiles. Ideally it should be provided by the auditd package, but until that happens create the file yourself:

/usr/lib/tmpfiles.d/auditd.conf
Code:
d /run/lock/subsys 1777 root root -

Adjust permissions (the third parameter) and user/group if needed. tmpfiles is a systemd thingy, but OpenRC has a shell implementation of it. To learn more about it: http://0pointer.de/public/systemd-man/tmpfiles.d.html - the openrc implementation ignores the "age" parameter.
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Wed Nov 21, 2012 12:33 am    Post subject: Reply with quote

Gusar wrote:
Creating dirs in /run is a job for tmpfiles. Ideally it should be provided by the auditd package, but until that happens create the file yourself:

/usr/lib/tmpfiles.d/auditd.conf
Code:
d /run/lock/subsys 1777 root root -

Adjust permissions (the third parameter) and user/group if needed. tmpfiles is a systemd thingy, but OpenRC has a shell implementation of it. To learn more about it: http://0pointer.de/public/systemd-man/tmpfiles.d.html - the openrc implementation ignores the "age" parameter.


The bad thing is I am running amd64 not ~amd64, simple bugs like this should have been squashed before hitting the stable tree.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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