![]() ![]() Man install says that the -d form will "create all components of the specified directories". I believe this is the one that handles mysqld: || install -m 755 -o mysql -g root -d /var/run/mysqld etc/init/nf: mkdir -p /var/run/cups/certs etc/init/ssh.conf: mkdir -p -m0755 /var/run/sshd etc/init/nf: mkdir -p /var/run/samba/winbindd_privileged etc/init.d/dns-clean:mkdir /var/run/pppconfig >/dev/null 2>&1 || true etc/init.d/bzflag: mkdir -p /var/run/bzflag etc/init.d/timidity: mkdir -p /var/run/timidity etc/init.d/bind9: mkdir -p /var/run/named ![]() Looks like they're created dynamically by individual services as they start: $ sudo egrep -r 'mkdir.*/var/run' /etc These directories will be created regardless of whether the corresponding service is ever started.įor full documentation, see man tmpfiles.d. The d means to create a directory if it doesn't already exist, after that is the path, and the rest are the permissions, user, and group. usr/lib/tmpfiles.d/nf:d /var/run/screen 0775 root utmp usr/lib/tmpfiles.d/nf:d /var/run/sshd 0755 root root usr/lib/tmpfiles.d/nf:d /var/run/postgresql 2775 postgres postgres. usr/lib/tmpfiles.d/nf:D /var/run/sudo/ts 0700 root root usr/lib/tmpfiles.d/nf:d /var/run/sudo 0711 root root usr/lib/tmpfiles.d/var.conf:L /var/run. For example, my system now has: $ egrep -r /var/run /usr/lib/tmpfiles.d conf file in /etc/tmpfiles.d, /run/tmpfiles.d, or /usr/lib/tmpfiles.d, with Ubuntu services seeming to prefer the last option. A service wishing to use this method can remove mkdir commands in its own startup script and instead place a. With the adoption of systemd as of 15.04, there is now a centralized mechanism for the creation of temporary files and directories such as these. (Thanks to and an answer on Serverfault for pointing out that this answer had not kept up with Ubuntu's ongoing development.) ![]()
0 Comments
Leave a Reply. |