aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2019-03-19 10:52:48 +0200
committerHristo Venev <hristo@venev.name>2019-03-19 10:52:48 +0200
commitd5274083487c1b47063a84356286dd76179b4e26 (patch)
tree705223a46cbd304dc1e59d31edb4fddc838b6d07
parentddd8e2d68bed2bd9efb8379a345bd99eaebd3795 (diff)
Fix systemd unit.
-rw-r--r--wgconfd@.service3
1 files changed, 2 insertions, 1 deletions
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