Set default systemd unit path to ${libdir}/systemd/system.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 6 Jan 2018 15:20:03 +0000 (16:20 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 6 Jan 2018 15:20:03 +0000 (16:20 +0100)
This installs systemd unit files into /usr/local, just like the binaries.
The systemd documentation claims to read this directory as well.

configure.ac

index 89087da..2704ede 100644 (file)
@@ -115,7 +115,7 @@ AC_ARG_WITH(systemd,
   [ systemd=false ]
 )
 
-AS_IF([test "x$with_systemd" = "xyes"], [systemd_path="/lib/systemd/system"],
+AS_IF([test "x$with_systemd" = "xyes"], [systemd_path="\${libdir}/systemd/system"],
       [AS_IF([test "x$with_systemd" = "xno"], [systemd=false])])
 
 AC_SUBST(systemd_path, $systemd_path)