Adapted from the forked gist and this blog. Adjusted to our own implementation.
The provided file should work with systemd version 219 or later. It might work with earlier versions.
The easiest way to check your systemd version is to run systemctl --version
.