blob: 85acb132e4401bd2a0f6ce6e3e901b3457719231 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|