Compare commits

...
Author SHA1 Message Date
MickLesk 291a125466 Frigate: stop the service cleanly
bash was the unit's main process and the default KillMode signalled the
whole cgroup, so Frigate's multiprocessing helpers died first and its
shutdown hung until systemd killed it after 90 s. Python is now the main
process and only it gets SIGTERM.
2026-12-04 08:02:23 +01:00
CanbiZ (MickLesk) f6d75d7a33 Revert "Refactor AdGuard Home update process (#19291)" (#19293)
This reverts commit 681e168ff7.
2026-12-04 06:33:09 +01:00
2 changed files with 25 additions and 4 deletions

No files matched your search

+22 -3
View File
@@ -32,9 +32,28 @@ variables
color
catch_errors
msg_info "Updating AdGuard Home"
$STD /opt/AdGuardHome/AdGuardHome --update
msg_ok "Updated AdGuard Home"
update_deb_based() {
if [[ ! -d /opt/AdGuardHome ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
msg_error "Adguard Home can only be updated via the user interface."
}
update_alpine() {
msg_info "Updating Alpine Packages"
$STD apk -U upgrade
msg_ok "Updated Alpine Packages"
msg_info "Updating AdGuard Home"
$STD /opt/AdGuardHome/AdGuardHome --update
msg_ok "Updated AdGuard Home"
msg_info "Restarting AdGuard Home"
$STD rc-service adguardhome restart
msg_ok "Restarted AdGuard Home"
msg_ok "Updated successfully!"
}
function update_script() {
header_info
+3 -1
View File
@@ -368,7 +368,9 @@ User=root
EnvironmentFile=/etc/frigate.env
ExecStartPre=+/usr/bin/systemctl restart go2rtc.service
ExecStartPre=+rm -f /dev/shm/logs/frigate/current
ExecStart=/bin/bash -c "bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run 2> >(/usr/bin/ts '%%Y-%%m-%%d %%H:%%M:%%.S ' >&2) | /usr/bin/ts '%%Y-%%m-%%d %%H:%%M:%%.S '"
ExecStart=/bin/bash -c 'exec > >(/usr/bin/ts "%%Y-%%m-%%d %%H:%%M:%%.S ") 2>&1; exec bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run'
KillMode=mixed
TimeoutStopSec=60
StandardOutput=file:/dev/shm/logs/frigate/current
StandardError=file:/dev/shm/logs/frigate/current