From 3f6c663a06aac728912c4e47cbc2dc4343a3798c Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 1 May 2016 12:07:44 +0200 Subject: [PATCH] Revert "Remove tinc.service, it is not necessary." This reverts commit 0b6f84f96eeed20a0d771fedb72c0e19941adb7e. Although systemd does automatically provide a "tinc.slice" when there is only a tinc@.service template, it doesn't quite work the same way as tinc.service. --- systemd/Makefile.am | 2 +- systemd/tinc.service | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 systemd/tinc.service diff --git a/systemd/Makefile.am b/systemd/Makefile.am index 043ec74..a1bfe12 100644 --- a/systemd/Makefile.am +++ b/systemd/Makefile.am @@ -1,4 +1,4 @@ if WITH_SYSTEMD systemddir = @systemd_path@ -dist_systemd_DATA = tinc@.service +dist_systemd_DATA = tinc.service tinc@.service endif diff --git a/systemd/tinc.service b/systemd/tinc.service new file mode 100644 index 0000000..d911fa7 --- /dev/null +++ b/systemd/tinc.service @@ -0,0 +1,20 @@ +# 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=/etc/tinc + +[Install] +WantedBy=multi-user.target -- 2.25.1