Re: setting up /run Reply #15 – 09 March 2019, 19:33:59 Quote from: Chris Cromer – on 08 November 2017, 19:40:35Yes, 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.Is this also where the /run files are created so I can create /run/mariadb/ on boot?
Re: setting up /run Reply #17 – 10 March 2019, 15:21:20 Quote from: mrbrklyn – on 10 March 2019, 06:26:18or another file or hard coded into grub?Files in /run are usually made by rc software or by services such as mysql. I don't get why you are doing all this to change the word mysql to mariadb. Mariadb is a mysql drop-in replacement which is why everything ia called mysql, it is like that on purpose to be fully compatible when other software depends on mysql. By doing what you are trying to accomplish you break compatability.
Re: setting up /run Reply #18 – 10 March 2019, 20:38:52 Quote from: Chris Cromer – on 10 March 2019, 15:21:20Files in /run are usually made by rc software or by services such as mysql. I don't get why you are doing all this to change the word mysql to mariadb. Mariadb is a mysql drop-in replacement which is why everything ia called mysql, it is like that on purpose to be fully compatible when other software depends on mysql. By doing what you are trying to accomplish you break compatability.It doesn't matter WHY I do it, cough cough trademaks cough cough oracle cough cough because understaning the system is a good enough reason, cough cough, I test both mysql and mariadb on the same boxes cough cough...The important thing here is to userstand how the system works and creates tmp enties under /runWhat is rc software? You can't just write it into the file system on installing the package, obviously since it is a temp file and is not permanent. When the system boots it creates new /run entries and does so from some configuration file or setting. Are you saying they are created by the /etc/rc.d file? That is not the case. I have entries for software that doesn't exist any longer, like dovecott.The point of the whole run system was to allow for secure entries for temp files for deamons what are under the lowest file permisions and are volitile. The system needs to produce subdirectories under /run with proper file permisions upon boot in order to do this.
Re: setting up /run Reply #19 – 10 March 2019, 21:08:10 A quick google search for "what is rc software linux" leads to this:https://unix.stackexchange.com/questions/111611/what-does-the-rc-stand-for-in-etc-rc-d/111613Some major rc softwares:OpenRCrunits6svinitupstartsystemd Many of these actually have two purposes, some of these are both an init and a rc software. But for example old versions of OpenRC are only RC and required svinit to handle init functionality. 1 Likes
Re: setting up /run Reply #20 – 11 March 2019, 03:44:53 we doesn't to stack exchange. We use usenet sometimes. Other sources are OS mailing lists, project mailing lists, project forums, irc channels, moderated academic lists... never ever stack exchange.If a deameon needs multipe tmp files, lets say it needs several sockets, and perhaps a Semiphore and a pid file, and it needs to touch everythign under /run/mydaemon/ where mydaemon is owned by root and group mydaemon with a rwx, r-x, --- permisions, a /etc/rc.d file can't, I think, make this mydameon directory.... It has to be done by a root enabled process, preferably init ?
Re: setting up /run Reply #21 – 16 April 2022, 22:26:19 Chris - I haven't had to read this for a while, but I just referred to it again. I want to thank you for all the basic help again!Also thank you for the patience! Dealing with people seemingly blind is not easy.
Re: setting up /run Reply #22 – 16 April 2022, 22:31:33 Quote from: Chris Cromer – on 10 March 2019, 21:08:10both an init and a rc software. But for example old versions of OpenRC are only RC and required svinit to handle init functionality.What exactly is the difference between a rc - run command, and in init functionality...I thought they were the same.