On Wed, 24.11.10 11:13, Paul Howarth (paul(a)city-fan.org) wrote:
> Hmm, it has been suggested that we should make it possible to
create
> these dirs in the .spec files by invoking the systemd-tmpfiles tool
> directly from the scriptlets. I guess we should add a nice interface for
> that. In the meantime it should be sufficient to simply place th right
> "mkdir -p -m ..." in the scriptlet. Of course it would be desirable if
> we have a single place where the dirs to create are encoded.
Why not create the directories in the initscript/systemd equivalent?
Because it's cumbersome and you need at least three invocations to get
things right, to do mkdir, chown and restorecon.
Lennart
--
Lennart Poettering - Red Hat, Inc.