Skip to content

Commit

Permalink
Tweak dh overrides to ensure that dump1090-fa is restarted on upgrade.
Browse files Browse the repository at this point in the history
We retain --no-restart-after-upgrade so that dump1090 is stopped
in prerm and restarted in postinst, not because dump1090 will be
confused by running during an upgrade, but because on low-resource
machines like a Pi Zero, dump1090's CPU use can significantly slow
down the upgrade process.
  • Loading branch information
mutability committed Nov 3, 2023
1 parent cad808e commit 455f3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ override_dh_install:
cp -a view1090 debian/dump1090-fa/usr/bin/view1090-fa

override_dh_installinit:
dh_installinit --no-stop-on-upgrade --no-restart-after-upgrade
dh_installinit --no-restart-after-upgrade

override_dh_systemd_start:
dh_systemd_start --no-stop-on-upgrade --no-restart-after-upgrade --name=dump1090-fa.service
dh_systemd_start --no-restart-after-upgrade

%:
dh $@ --with=systemd

0 comments on commit 455f3d0

Please sign in to comment.