@ -0,0 +1,8 @@
[Unit]
Description=Watch /etc/wireguard for changes
[Path]
PathModified=/etc/wireguard
[Install]
WantedBy=multi-user.target
@ -0,0 +1,10 @@
Description=Restart WireGuard
After=network.target
[Service]
Type=oneshot
ExecStart=/bin/bash /etc/wireguard/wg0-reload.sh