where to install systemd unit files

HI!

Is there any fact or similar pointing to the directory where to install systemd
unit files on different Linux distros?

Output of systemd-path is not helpful for this.

Currently I have in a custom map:
  Debian: "/lib/systemd/system" (sigh!)
  openSUSE: "/usr/lib/systemd/system"
  CentOS: "/usr/lib/systemd/system"

But that's not very elegant.

Ciao, Michael.

Every one of them and a lot of others distros, if not all, support /etc/systemd/system, is there a reason for not using that directory?

Kai Stian Olstad wrote:

A link is created in /etc/systemd/system/*.target.wants to the service file in /etc/systemd/system/ when enable is executed, and the link is removed with disable, so yes it's still possible.