Systemd service files are not supposed to be distribution-specific.
/doc/*.html
/doc/*.pdf
/doc/*.t2p
+/systemd/*.service
/ChangeLog
core*
AUTOMAKE_OPTIONS = gnu
-SUBDIRS = src doc distro
+SUBDIRS = src doc systemd
ACLOCAL_AMFLAGS = -I m4
AC_SUBST([runstatedir], ['${localstatedir}/run'])
fi
-AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile distro/Makefile])
+AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile systemd/Makefile])
AC_OUTPUT
+++ /dev/null
-EXTRA_DIST = tinc.service.in tinc@.service.in
-
-CLEANFILES = tinc.service tinc@.service
-
-if WITH_SYSTEMD
-systemddir = @systemd_path@
-nodist_systemd_DATA = tinc.service tinc@.service
-endif
-
-substitute = sed \
- -e s,'@sbindir\@',"$(sbindir)",g \
- -e s,'@sysconfdir\@',"$(sysconfdir)",g
-
-tinc.service: $(srcdir)/tinc.service.in
- $(AM_V_GEN)$(substitute) $(srcdir)/tinc.service.in > $@
-
-tinc@.service: $(srcdir)/tinc@.service.in
- $(AM_V_GEN)$(substitute) $(srcdir)/tinc@.service.in > $@
+++ /dev/null
-# This is a mostly empty service, but allows commands like stop, start, reload
-# to propagate to all tinc@ service instances.
-
-[Unit]
-Description=Tinc VPN
-Documentation=info:tinc
-Documentation=man:tinc(8) man:tinc.conf(5)
-Documentation=http://tinc-vpn.org/docs/
-After=network.target
-Wants=network.target
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-ExecStart=/bin/true
-ExecReload=/bin/true
-WorkingDirectory=@sysconfdir@/tinc
-
-[Install]
-WantedBy=multi-user.target
+++ /dev/null
-[Unit]
-Description=Tinc net %i
-Documentation=info:tinc
-Documentation=man:tinc(8) man:tinc.conf(5)
-Documentation=http://tinc-vpn.org/docs/
-PartOf=tinc.service
-ReloadPropagatedFrom=tinc.service
-
-[Service]
-Type=simple
-WorkingDirectory=@sysconfdir@/tinc/%i
-ExecStart=@sbindir@/tincd -n %i -D
-ExecReload=@sbindir@/tincd -n %i -kHUP
-KillMode=mixed
-Restart=on-failure
-RestartSec=5
-TimeoutStopSec=5
-
-[Install]
-WantedBy=tinc.service
--- /dev/null
+EXTRA_DIST = tinc.service.in tinc@.service.in
+
+CLEANFILES = tinc.service tinc@.service
+
+if WITH_SYSTEMD
+systemddir = @systemd_path@
+nodist_systemd_DATA = tinc.service tinc@.service
+endif
+
+substitute = sed \
+ -e s,'@sbindir\@',"$(sbindir)",g \
+ -e s,'@sysconfdir\@',"$(sysconfdir)",g
+
+tinc.service: $(srcdir)/tinc.service.in
+ $(AM_V_GEN)$(substitute) $(srcdir)/tinc.service.in > $@
+
+tinc@.service: $(srcdir)/tinc@.service.in
+ $(AM_V_GEN)$(substitute) $(srcdir)/tinc@.service.in > $@
--- /dev/null
+# This is a mostly empty service, but allows commands like stop, start, reload
+# to propagate to all tinc@ service instances.
+
+[Unit]
+Description=Tinc VPN
+Documentation=info:tinc
+Documentation=man:tinc(8) man:tinc.conf(5)
+Documentation=http://tinc-vpn.org/docs/
+After=network.target
+Wants=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/bin/true
+ExecReload=/bin/true
+WorkingDirectory=@sysconfdir@/tinc
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+[Unit]
+Description=Tinc net %i
+Documentation=info:tinc
+Documentation=man:tinc(8) man:tinc.conf(5)
+Documentation=http://tinc-vpn.org/docs/
+PartOf=tinc.service
+ReloadPropagatedFrom=tinc.service
+
+[Service]
+Type=simple
+WorkingDirectory=@sysconfdir@/tinc/%i
+ExecStart=@sbindir@/tincd -n %i -D
+ExecReload=@sbindir@/tincd -n %i -kHUP
+KillMode=mixed
+Restart=on-failure
+RestartSec=5
+TimeoutStopSec=5
+
+[Install]
+WantedBy=tinc.service