Archive

HowTo: Regenerate tmpfiles without restarting

Ok, I'm playing around with thin and nginx now. I am into sinatra and padrino and stuff.

So, I am creating sockets for thin so nginx can read them. I need a directory in /run

I've decided to create a directory called thin; with 2770 permissions and owner/group would be renich/nginx (for now; when done, I'll create the app's own user).

There is a standard way to do this. Just create a file:

# /etc/tmpfiles.d/thin.conf
d /run/thin 2770 renich nginx -

Now, how do I make the tmpfiles regenerate without restarting? Fairly easy:

su -c 'systemd-tmpfiles --create'