aboutsummaryrefslogtreecommitdiff
path: root/dist/systemd/wgconfd@.service
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2019-05-17 19:31:03 +0300
committerHristo Venev <hristo@venev.name>2019-05-18 20:06:02 +0300
commitec821f39d9689df213698dbcb90b4367297b9cb5 (patch)
tree111a526547fd1d913777b27f21e9bc5a6fc5b806 /dist/systemd/wgconfd@.service
parent6b40d416e719bf4811e0f86c9f869328349b8911 (diff)
procd service, manifest
Diffstat (limited to 'dist/systemd/wgconfd@.service')
-rw-r--r--dist/systemd/wgconfd@.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/dist/systemd/wgconfd@.service b/dist/systemd/wgconfd@.service
new file mode 100644
index 0000000..85acb13
--- /dev/null
+++ b/dist/systemd/wgconfd@.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=WireGuard configuration daemon on %i
+Wants=network.target
+After=network-pre.target
+Before=network.target
+
+[Service]
+Type=simple
+CapabilityBoundingSet=CAP_NET_ADMIN
+Restart=on-failure
+RestartSec=0
+RuntimeDirectory=wgconfd/%i
+RuntimeDirectoryPreserve=yes
+CacheDirectory=wgconfd/%i
+ExecStart=/usr/bin/env wgconfd %i /etc/wireguard/%i.toml
+StandardError=journal
+SyslogLevelPrefix=true
+
+[Install]
+WantedBy=multi-user.target