This question already has an answer here:
- Where do I put my systemd unit file? 3 answers
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)