Article 4ZBFE systemd-tmpfiles : avoiding collisions

systemd-tmpfiles : avoiding collisions

by
genese
from LinuxQuestions.org on (#4ZBFE)
Hello All,

I need a temporary directory in /run.

I'm going to create a foo.conf file in /etc/tmpfiles.d with the following content

Code:d /run/bar 0755 user groupHow do I make sure that /run/bar is not defined in another .conf (in /usr/lib/tmpfiles.d or elsewhere) ?

Is there an alternative to grep ?

If one day I install a new package which defines /run/bar in its .conf, the conflict will be reported in the logs, but I must confess that I don't read the logs at each reboot.

So something will break (either my scripts or the package, I didn't read the doc enough to tell it), with possible loss of data or DOS.

Is there any naming convention that solves this problem ?

TIA for any help.latest?d=yIl2AUoC8zA latest?i=Ber09fdLRN0:VqCDZMbd5fo:F7zBnMy latest?i=Ber09fdLRN0:VqCDZMbd5fo:V_sGLiP latest?d=qj6IDK7rITs latest?i=Ber09fdLRN0:VqCDZMbd5fo:gIN9vFwBer09fdLRN0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments