[systemd-devel] systemd-tmpfiles for the user instance of systemd

Lennart Poettering lennart at poettering.net
Fri Jul 3 11:33:54 PDT 2015


On Wed, 01.07.15 14:26, Daniel Tihelka (dtihelka at gmail.com) wrote:

> On Wednesday 01 of July 2015 12:00:59 Dimitri John Ledkov wrote:
> > Heya,
> 
> Hello,
> thank for the reply.
> 
> > On 1 July 2015 at 11:35, Daniel Tihelka <dtihelka at gmail.com> wrote:
> > > Hello,
> > > does anyone have an experience with the use of systemd-tmpfiles for the
> > > user instance of systemd.
> > 
> > My question would be - what sort of files are you creating with tmpfiles?
> > 
> 
> Well, my intention was mostly put it on my directory, where I use to store 
> some temporary results and data, and where there is currently a several GB 
> mess :-) The task of systemd-tmpfiles tool would mostly be to prone files older 
> than, let say 5 months (I know that all important data must be copied from the 
> dir ...). And possibly also a downloads dir, chrome cache and stuff like that.
> 
> Sure, it could be achieved by a find-embedding script as well, but if there is 
> this systemd-tmpfiles which I do not have to tune and check if it is working 
> correctly (which may be harder on several-months scale ...)

If this is in your local syste only I'd probably just stick the path
into a system snippet for tmpfiles. The CAP_ADMIN mess then goes away,
and things should just work?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list