aboutsummaryrefslogblamecommitdiff
path: root/dist/systemd/wgconfd@.service
blob: 971681d735dfc387a25c01e8467bc9495defad87 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                                

                                                 






                                   
                         
                       
                                           





                                                        
[Unit]
Description=WireGuard configuration daemon on %i
Wants=network.target
Requires=wgconfd-state@%i.service
After=network-pre.target wgconfd-state@%i.service
Before=network.target

[Service]
Type=simple
CapabilityBoundingSet=CAP_NET_ADMIN
Restart=on-failure
RestartSec=0
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

[Install]
WantedBy=multi-user.target