blob: 3b858090ee50aabd39da8bdba363f8552701fde3 (
plain) (
tree)
|
|
[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
RuntimeDirectoryMode=0700
RuntimeDirectoryPreserve=yes
CacheDirectory=wgconfd/%i
CacheDirectoryMode=0700
ExecStart=/usr/bin/env wgconfd %i /etc/wireguard/%i.toml
StandardError=journal
SyslogLevelPrefix=true
[Install]
WantedBy=multi-user.target
|