summaryrefslogtreecommitdiffstats
path: root/debian/exim4-daemon-light.prerm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:16:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:16:14 +0000
commit318a1a2246a9f521e5a02313dcc1f6d68a0af7ec (patch)
treee28c79d572e488bf782444e31d81291b99ef1932 /debian/exim4-daemon-light.prerm
parentAdding upstream version 4.96. (diff)
downloadexim4-debian.tar.xz
exim4-debian.zip
Adding debian version 4.96-15+deb12u4.debian/4.96-15+deb12u4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/exim4-daemon-light.prerm')
-rw-r--r--debian/exim4-daemon-light.prerm33
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/exim4-daemon-light.prerm b/debian/exim4-daemon-light.prerm
new file mode 100644
index 0000000..c7c3db8
--- /dev/null
+++ b/debian/exim4-daemon-light.prerm
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+set -e
+
+if [ -n "$EX4DEBUG" ]; then
+ echo "now debugging $0 $@"
+ set -x
+fi
+
+case "$1" in
+ remove|upgrade)
+ if [ -x /etc/init.d/exim4 ]; then
+ if [ -n "$EX4DEBUG" ]; then
+ netstat -tulpen
+ ls -al /run/exim4/
+ cat /run/exim4/exim.pid
+ pidof exim4
+ fi
+ invoke-rc.d exim4 stop
+ if [ -n "$EX4DEBUG" ]; then
+ netstat -tulpen
+ ls -al /run/exim4/
+ cat /run/exim4/exim.pid
+ pidof exim4
+ if pidof exim4; then
+ echo >&2 "WARN: There are some exim4 processes still running after stopping exim"
+ fi
+ fi
+ fi
+ ;;
+esac
+
+#DEBHELPER#