Skip to content

Commit

Permalink
Work around debhelper bug #989155
Browse files Browse the repository at this point in the history
On buster/bullseye this bug is unfixed and the service won't be
correctly stopped/restarted if the old package version doesn't
stop the service in prerm.
  • Loading branch information
mutability committed Nov 3, 2023
1 parent 3fe5d5b commit bb658d2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions debian-bullseye/dump1090-fa.preinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
set -e

# Work around Debian bug #989155
if [ "$1" = upgrade ] && [ -d /run/systemd/system ] ; then
deb-systemd-invoke stop 'dump1090-fa.service' >/dev/null || true
fi
7 changes: 7 additions & 0 deletions debian-buster/dump1090-fa.preinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
set -e

# Work around Debian bug #989155
if [ "$1" = upgrade ] && [ -d /run/systemd/system ] ; then
deb-systemd-invoke stop 'dump1090-fa.service' >/dev/null || true
fi

0 comments on commit bb658d2

Please sign in to comment.