[systemd-devel] runtime directories for services vs. tmpfiles
lennart at poettering.net
Wed Jul 17 06:43:38 PDT 2013
On Wed, 17.07.13 06:56, Andrey Borzenkov (arvidjaar at gmail.com) wrote:
> > On Tue, 16.07.13 18:53, Lennart Poettering (lennart at poettering.net) wrote:
> > 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=
> > If RuntimeDirectory= is set we'd create it and chown() it to the UID/GID
> > set with User= and Group=. We'd apply the mode specified in
> > RuntimeDirectoryMode= to it.
> > We'd even allow multiple runtime directories to be specified.
> What if different directories need different modes? I'm afraid it will
> become hard to express in unit file.
All complex cases would be handled by tmpfiles as before.
This is not supposed to be a 100% solution. It would be a > 70% solution
though, if I look at the tmpfiles snippets I have installed on my local
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel