Add systemd service files.
[tinc] / distro / tinc.service
diff --git a/distro/tinc.service b/distro/tinc.service
new file mode 100644 (file)
index 0000000..1f015f0
--- /dev/null
@@ -0,0 +1,16 @@
+# This is a mostly empty service, but allows commands like stop, start, reload
+# to propagate to all tinc@ service instances.
+
+[Unit]
+Description=Tinc VPN
+After=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/bin/true
+ExecReload=/bin/true
+WorkingDirectory=/etc/tinc
+
+[Install]
+WantedBy=multi-user.target