Systemd: Support tmpfiles.d in user instances

Created on 21 Dec 2015  路  3Comments  路  Source: systemd/systemd

This would be really useful for deleting old files from the trash, clearing the cache, clearing old downloads, recreating XDG directories, etc.

RFE 馃巵 tmpfiles

Most helpful comment

I plus one this.
In my use case, I want to add a directory into $XDG_RUNTIME_DIR to hold sockets for ssh multiplexing. Since ssh can't create the directory by itself, I thought of systemd-tmpfiles could generate it.

All 3 comments

I plus one this.
In my use case, I want to add a directory into $XDG_RUNTIME_DIR to hold sockets for ssh multiplexing. Since ssh can't create the directory by itself, I thought of systemd-tmpfiles could generate it.

I have made a change that makes systemd-tmpfiles recognise %U, %u and %h as well, so this will allow using it in a user context a bit more easily.

That being said, tmpfiles still doesn't support environment variables like e.g. the XDG_... variables, so this doesn't entirely solve this problem yet (I'll wait with opening a pull request).

Was this page helpful?
0 / 5 - 0 ratings