diff options
-rw-r--r-- | autoscripts/postrm-init | 7 | ||||
-rwxr-xr-x | dh_installinit | 4 |
2 files changed, 4 insertions, 7 deletions
diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init index 6f5bb09a..1c292982 100644 --- a/autoscripts/postrm-init +++ b/autoscripts/postrm-init @@ -1,10 +1,3 @@ if [ "$1" = "purge" ] ; then update-rc.d #SCRIPT# remove >/dev/null fi - - -# In case this system is running systemd, we make systemd reload the unit files -# to pick up changes. -if [ -d /run/systemd/system ] ; then - systemctl --system daemon-reload >/dev/null || true -fi diff --git a/dh_installinit b/dh_installinit index 7ba8504a..8cfa765c 100755 --- a/dh_installinit +++ b/dh_installinit @@ -399,6 +399,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) { autoscript($package,"postrm","postrm-init", { 'SCRIPT' => $script, 'ERROR_HANDLER' => $dh{ERROR_HANDLER} }, \%snippet_options); + + if (compat(11)) { + autoscript($package, 'postrm', 'postrm-systemd-reload-only', \%snippet_options); + } } } } |