summarylogtreecommitdiffstats
path: root/peervpn@.service
diff options
context:
space:
mode:
Diffstat (limited to 'peervpn@.service')
-rwxr-xr-xpeervpn@.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/peervpn@.service b/peervpn@.service
new file mode 100755
index 000000000000..1d014b7ba464
--- /dev/null
+++ b/peervpn@.service
@@ -0,0 +1,19 @@
+# To create a new PeerVPN instance called <name>, create a new configuration file
+# /etc/peervpn/<name>.conf. You can use the provided example configuration file
+# peervpn.conf as a template.
+#
+# After the configuration file is created, you can control the instance with
+# systemctl using systemd unit named peervpn@<name>.service.
+
+[Unit]
+Description=PeerVPN Node (%i)
+After=syslog.target network.target
+ConditionPathExists=/etc/peervpn/%i.conf
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/peervpn /etc/peervpn/%i.conf
+
+[Install]
+WantedBy=multi-user.target
+