aboutsummaryrefslogtreecommitdiff
path: root/wgconfd@.service
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2019-04-02 16:24:09 +0300
committerHristo Venev <hristo@venev.name>2019-04-02 16:46:29 +0300
commite51df1dcf162b03a9e9266db70547afc06883c98 (patch)
tree1e662ba78b0ac830244f7edd75e7959165a10e1b /wgconfd@.service
parente26aa67a5e280eefcd9ea3143b6379a905eff0ed (diff)
Let systemd create the various directories.
Diffstat (limited to 'wgconfd@.service')
-rw-r--r--wgconfd@.service4
1 files changed, 3 insertions, 1 deletions
diff --git a/wgconfd@.service b/wgconfd@.service
index 8d46b7a..1079fbf 100644
--- a/wgconfd@.service
+++ b/wgconfd@.service
@@ -6,9 +6,11 @@ Before=network-pre.target nftables.service systemd-networkd.service NetworkManag
[Service]
Type=simple
CapabilityBoundingSet=CAP_NET_ADMIN
+RuntimeDirectory=wgconfd
+CacheDirectory=wgconfd
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
+ExecStart=/usr/bin/env wgconfd %i /etc/wireguard/%i.toml
StandardError=journal
SyslogLevelPrefix=true