2018-05-17 15:16:49 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Call wg-quick
|
|
|
|
PartOf=wireguard.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2018-05-17 15:44:36 +02:00
|
|
|
ExecStart=/usr/bin/wg-quick up /etc/wireguard/%i.conf
|
|
|
|
ExecStop=/usr/bin/wg-quick down /etc/wireguard/%i.conf
|
2018-05-17 15:16:49 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|