[Unit] Description=Call wg-quick PartOf=wireguard.service [Service] Type=oneshot ExecStart=/usr/bin/wg-quick up /etc/wg/%i.conf ExecStop=/usr/bin/wg-quick down /etc/wg/%i.conf [Install] WantedBy=multi-user.target