Skip to main content
Topic: setting up /run (Read 3246 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

setting up /run

i see /run is a mounted as a tmp file system.  How do I control it and set it up?

Re: setting up /run

Reply #1
I can't find anywhere with is set up to constructed


Re: setting up /run

Reply #3
/etc/init.d/bootmisc.

really, I looked at that

Re: setting up /run

Reply #4
Code: [Select]
 * bootmisc: unknown function `/run'
[ruben@flatbush ~]$ sudo vim /etc/init.d/bootmisc
[ruben@flatbush ~]$ sudo /etc/init.d/bootmisc restart
[sudo] password for ruben:
 * WARNING: you are stopping a boot service
 * Caching service dependencies ...                                                                                                                    [ ok ]
x => /var/log
x => /tmp
x => /var/lib/misc
 * Creating user login records ...                                                                                                                     [ ok ]
 * Wiping /tmp directory ...       


look like not run...

the package builders must know.

Re: setting up /run

Reply #5
Code: [Select]
grep -ir tmpfs /usr/lib/openrc/*
/usr/lib/openrc/sh/init.sh: mount -t tmpfs -o mode=0755,nodev,size=10% tmpfs /run

Seems hardcoded and not controlled by a config file.

Re: setting up /run

Reply #6
I thought I tried that :(  - thanks

Re: setting up /run

Reply #7
May I ask why you want to change it?

/run is supposed to be tmpfs because /run needs to be deleted on shutdown/reboot. This is by design and follows the FHS(Filesystem Hierarchy Standard).
Chris Cromer

Re: setting up /run

Reply #8
What I want it to do is stop populating directories with the wrong permisions

Re: setting up /run

Reply #9
specificially, I want it to stop making /run/mysql and make /run/mariadb with maria.mariadb ownership

I also want it to stop adding mysql as a user in /etc/passwd and /etc/groups etc.

Re: setting up /run

Reply #10
Nothing to do with /run.

You need to modify the mariadb package to make those changes.
Chris Cromer

Re: setting up /run

Reply #11
 /usr/lib64/tmpfiles.d/

Re: setting up /run

Reply #12
The mariadb package is also adding users to /etc/passwd on ever reboot?

 

Re: setting up /run

Reply #13
Yes, the mariadb package controls that. It adds a file /usr/lib/tmpfiles.d/mariadb.conf, this file creates the user and group "mysql" on every boot.
Chris Cromer

Re: setting up /run

Reply #14
Yes, the mariadb package controls that. It adds a file /usr/lib/tmpfiles.d/mariadb.conf, this file creates the user and group "mysql" on every boot.
Perfect!!!  Thanks for that information!