On Wed, 17.07.13 06:56, Andrey Borzenkov (arvidj...@gmail.com) wrote:

> > On Tue, 16.07.13 18:53, Lennart Poettering (lenn...@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
machine.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to