12 lines
197 B
SYSTEMD
12 lines
197 B
SYSTEMD
|
[Unit]
|
||
|
Description=Call wg-quick
|
||
|
PartOf=wireguard.service
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
ExecStart=wg-quick up /etc/wg/%i.conf
|
||
|
ExecStop=wg-quick down /etc/wg/%i.conf
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|