fix: make web updates restart cleanly

This commit is contained in:
MengMengCode
2026-08-09 20:13:50 +08:00
parent 85f8790e1e
commit 1fc6ea9b6c
3 changed files with 11 additions and 2 deletions
+3 -1
View File
@@ -216,7 +216,9 @@ ExecStart=${BINARY_PATH}
Restart=on-failure
RestartSec=3s
TimeoutStartSec=30s
TimeoutStopSec=20s
# HTTP, VoWiFi, and modem cleanup have bounded shutdown contexts totalling up
# to 30 seconds. Leave a small margin before systemd resorts to SIGKILL.
TimeoutStopSec=40s
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW