diff -Nru bind9-9.16.15/debian/bind9.postinst bind9-9.16.15/debian/bind9.postinst --- bind9-9.16.15/debian/bind9.postinst 2021-12-01 13:06:43.000000000 -0300 +++ bind9-9.16.15/debian/bind9.postinst 2021-12-09 11:18:09.000000000 -0300 @@ -30,6 +30,10 @@ chmod g+r /etc/bind/rndc.key /etc/bind/named.conf* || true chmod g+rwx /var/cache/bind fi + + # Configuration file sanity check. This should avoid the upgrade process to + # stop a running service when starting it after the upgrade would fail + /usr/sbin/named-checkconf /etc/bind/named.conf fi #DEBHELPER# diff -Nru bind9-9.16.15/debian/changelog bind9-9.16.15/debian/changelog --- bind9-9.16.15/debian/changelog 2021-12-01 13:06:43.000000000 -0300 +++ bind9-9.16.15/debian/changelog 2021-12-09 11:18:19.000000000 -0300 @@ -1,3 +1,9 @@ +bind9 (1:9.16.15-1ubuntu4~ppa1) jammy; urgency=medium + + * d/bind9.postinst: Perform config sanity check. (LP: #1492212) + + -- Athos Ribeiro Thu, 09 Dec 2021 11:18:19 -0300 + bind9 (1:9.16.15-1ubuntu3) jammy; urgency=medium * No-change rebuild against openssl3