summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rw-r--r--debian/sane-utils.postrm7
2 files changed, 14 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 32b0aa4..cc95758 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+sane-backends (1.0.31-3) UNRELEASED; urgency=medium
+
+ * debian/sane-utils.postrm (Closed: #941625).
+ - On purge remove pid file if sysvinit are used.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Wed, 30 Sep 2020 16:12:47 +0200
+
sane-backends (1.0.31-2) unstable; urgency=medium
* Upload into unstable (Closes: #969592).
diff --git a/debian/sane-utils.postrm b/debian/sane-utils.postrm
index 288b511..275eee6 100644
--- a/debian/sane-utils.postrm
+++ b/debian/sane-utils.postrm
@@ -44,6 +44,13 @@ if [ "$1" = purge ] ; then
if [ -d /var/lib/systemd/deb-systemd-helper-masked ]; then
rmdir --ignore-fail-on-non-empty /var/lib/systemd/deb-systemd-helper-masked
fi
+#
+# remove pid file
+#
+ if [ -f /var/run/saned.pid ]; then
+ rm -f /var/run/saned.pid
+ fi
+
fi