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:

<code>

# /etc/tmpfiles.d/thin.conf

d /run/thin 2770 renich nginx -

</code>

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

<code>

su -c 'systemd-tmpfiles --create'

</code>

# References

man 8 systemd-tmpfiles

http://www.freedesktop.org/software/systemd/man/systemd-tmpfiles.html