[Unit] Description=Restart WireGuard After=network.target [Service] Type=oneshot ExecStart=sh -c 'exec /usr/bin/wg-quick strip wg0 | { /usr/bin/wg syncconf wg0 /dev/fd/3; } 3<&0' [Install] WantedBy=multi-user.target