I've read several sources so far. Here are the three options I have encountered:
/etc/systemd/system
/usr/lib/systemd/system
/lib/systemd/system
I was originally putting my service in /lib/systemd/system, and it seems a bunch of other services are in that directory as well. However, it's supposed to be in /etc/systemd/system?? This source never talks about the third option: Where do I put my systemd unit file on Arch Linux?
Also, this tutorial seems to put it in that directory. http://www.raspberrypi-spy.co.uk/2015/10/how-to-autorun-a-python-script-on-boot-using-systemd/
Please help clarify for me. Enabling my unit is leading to an error message: "Failed to enable unit: Invalid argument" I hypothesize because the directory is wrong. (I am using Arch Linux)
After
should understand target names (bar.target) and should not need full paths. – Klaatu von Schlacker Jul 19 '17 at 00:31