From d5274083487c1b47063a84356286dd76179b4e26 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Tue, 19 Mar 2019 10:52:48 +0200 Subject: Fix systemd unit. --- wgconfd@.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wgconfd@.service') diff --git a/wgconfd@.service b/wgconfd@.service index db71870..8d46b7a 100644 --- a/wgconfd@.service +++ b/wgconfd@.service @@ -6,7 +6,8 @@ Before=network-pre.target nftables.service systemd-networkd.service NetworkManag [Service] Type=simple CapabilityBoundingSet=CAP_NET_ADMIN -ExecStartPre=/usr/bin/wg setconf %i /etc/wireguard/%i.conf +ExecStartPre=+-/usr/sbin/ip link add %i type wireguard +ExecStartPre=+/usr/bin/wg setconf %i /etc/wireguard/%i.conf ExecStart=/usr/local/bin/wgconfd %i /etc/wireguard/%i.toml StandardError=journal SyslogLevelPrefix=true -- cgit