1
0
Fork 0
exim4/debian/exim4-daemon-light.prerm
Daniel Baumann b6ead8c0a5
Adding debian version 4.98.2-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 14:27:17 +02:00

37 lines
638 B
Bash

#!/bin/sh
set -e
if [ -n "$EX4DEBUG" ]; then
echo "now debugging $0 $@"
set -x
fi
# SysV Init
if ! [ -d /run/systemd/system ] && \
[ -z "${DPKG_ROOT:-}" ] && \
[ -x /etc/init.d/exim4 ] ; then
case "$1" in
remove|upgrade)
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
;;
esac
fi
#DEBHELPER#