summaryrefslogtreecommitdiff
path: root/debian/sane-utils.postrm
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 /debian/sane-utils.postrm
parentab6c80ca4da01e641dc3ee5c40013f94d3fdf634 (diff)
d/sane-utils.postrm: On purge remove pid file if sysvinit are used
Diffstat (limited to 'debian/sane-utils.postrm')
-rw-r--r--debian/sane-utils.postrm7
1 files changed, 7 insertions, 0 deletions
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