Day 28 in the #vDM30in30

Image source: https://flic.kr/p/y1DUPj

So previously I blogged about about how to ensure a /var/run directory exists before a systemd service starts, using the ExecStartPre steps to ensure the directory exists.

ExecStartPre=-/usr/bin/mkdir /run/jmxtrans/
ExecStartPre=/usr/bin/chown -R jmxtrans:jmxtrans /run/jmxtrans/

I took the idea from a blog by Jari Turkia.

However, I made the rookie mistake of not checking the comments to see if things had changed and there was a better way, since the original post was written in 2013.

Peter Souter

Just some guy y’know?

Technical Account Manager

London, UK