aboutsummaryrefslogtreecommitdiff
path: root/dist/systemd/wgconfd@.service
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2019-09-28 15:59:13 +0000
committerHristo Venev <hristo@venev.name>2019-09-29 18:06:10 +0300
commit6c7b4fb2f781d33fb49e760b34dd2595e1adc0fb (patch)
tree4c442d6117d175565299a65c2274b968d31073c9 /dist/systemd/wgconfd@.service
parent1c42c390c0d076d8c25eb9d29767da151dd590d0 (diff)
systemd, changelog, bumpv0.2.0
Diffstat (limited to 'dist/systemd/wgconfd@.service')
-rw-r--r--dist/systemd/wgconfd@.service7
1 files changed, 3 insertions, 4 deletions
diff --git a/dist/systemd/wgconfd@.service b/dist/systemd/wgconfd@.service
index 3b85809..971681d 100644
--- a/dist/systemd/wgconfd@.service
+++ b/dist/systemd/wgconfd@.service
@@ -1,7 +1,8 @@
[Unit]
Description=WireGuard configuration daemon on %i
Wants=network.target
-After=network-pre.target
+Requires=wgconfd-state@%i.service
+After=network-pre.target wgconfd-state@%i.service
Before=network.target
[Service]
@@ -9,11 +10,9 @@ Type=simple
CapabilityBoundingSet=CAP_NET_ADMIN
Restart=on-failure
RestartSec=0
-RuntimeDirectory=wgconfd/%i
-RuntimeDirectoryMode=0700
-RuntimeDirectoryPreserve=yes
CacheDirectory=wgconfd/%i
CacheDirectoryMode=0700
+Environment=RUNTIME_DIRECTORY=%t/wgconfd/%i
ExecStart=/usr/bin/env wgconfd %i /etc/wireguard/%i.toml
StandardError=journal
SyslogLevelPrefix=true