Files
wirecon/lxc
d4nn13andClaude Opus 4.7 e9256e6389 detach service restarts from config-save CGI
Saving wg0.conf via the web UI restarts wg-quick + watchdog + monitor
serially. wg-quick's down/up can take long enough that busybox httpd
closes the HTTP socket first, which the browser reports as "Failed to
fetch" even though the file was saved.

Move the restart loop into a detached background process, log its
output to /var/log/wirecon-restart.log (with per-service timeout 20s),
and have the CGI return the save confirmation immediately. The new log
is also servable via logs.sh?service=restart.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 19:49:12 +02:00
..