Q:

Systemd service files in non-default directory

The default directory of service files is: etc/systemd/system and while this works ok, I was wondering if it was possible to specify another directory where service files can be put. The reason I want this is because I'd like to keep the service files that belong to the software that I'm writing together.
Do you know if this is possible?

A:

Actually the real service files are in /lib/systemd/system. Symlinks to them are created in /etc/systemd/system when the services are enabled.
If you want to put your service files somewhere else, go ahead, but when you want to enable the service, you must specify the full path to the real service file so that systemd can make the symlink to /etc/systemd/system, eg:
sudo systemctl enable /path/to/my-service-file

