summarylogtreecommitdiffstats
path: root/peervpn@.service
blob: 3ad9b49d88f60f90fcf65f3940427d6ec34fe5ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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/bin/peervpn /etc/peervpn/%i.conf

[Install]
WantedBy=multi-user.target