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

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Tue Jul 16 12:33:48 PDT 2013

On Tue, Jul 16, 2013 at 07:28:12PM +0000, "Jóhann B. Guðmundsson" 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?
It was written in the part you removed:

Putting this all together we'd recommend:
a) in the best case make your daemon create all runtime dirs as
b) if that's not possible (for example, due to privs), then use
   RuntimeDirectory= instead.

they are not broken. they are refucktored
                           -- alxchk

More information about the systemd-devel mailing list