summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-09-30 16:34:40 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-09-30 16:34:40 +0200
commit5cb641c75f11518b06a955e6d817b622fe7ed10f (patch)
tree719f2d82fb0e976d63a68ee6a26c697440158330
parentab6c80ca4da01e641dc3ee5c40013f94d3fdf634 (diff)
d/sane-utils.postrm: On purge remove pid file if sysvinit are used
-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