[systemd-devel] runtime directories for services vs. tmpfiles

"Jóhann B. Guðmundsson" johannbg at gmail.com
Tue Jul 16 12:41:08 PDT 2013

On 07/16/2013 07:34 PM, Kay Sievers wrote:
> On Tue, Jul 16, 2013 at 9:28 PM, "Jóhann B. Guðmundsson"
> <johannbg at gmail.com> wrote:
>> On 07/16/2013 06:26 PM, Lennart Poettering wrote:
>>> I discussed this a bit more with Kay on the phone. Here's what we'd
>>> propose:
>>> I'd be very conservative regarding adding full tmpfiles support into
>>> unit files directly. Instead, I'd suggest adding two very minimal, very
>>> specific new unit file settings:
>>> RuntimeDirectory=
>>> RuntimeDirectoyMode=
>> What exactly are we trying to solve here which should not be fixed upstream
>> in the daemons themselves?
> Stuff that uses User= cannot be fixed in the daemon itself, at the
> time it runs, systemd itself has already taken away the privileges to
> create these directories.

We increase unit complexity with each option we add so I would suggest 
unless it's absolutely necessary to just stick with just tmpfiles to 
handle this.


More information about the systemd-devel mailing list