# Disable orphaned inetd-entries from exim (v3) caused by bugs #202670
# and #182206.
if [ "$1" = "configure" ] &&\
- [ -x /usr/sbin/update-inetd ] && [ ! -x /usr/sbin/exim ] && \
+ which update-inetd > /dev/null && which exim > /dev/null && \
+ [ -f /etc/inetd.conf ] && \
grep -E -q '^smtp[[:space:]]*stream[[:space:]]*tcp[[:space:]]*nowait[[:space:]]*mail[[:space:]]*/usr/sbin/+exim exim -bs' /etc/inetd.conf
then
update-inetd --comment-chars \#disabled\# \
db_stop
if [ -n "$EX4DEBUG" ]; then
netstat -tulpen
- ls -al /var/run/exim4/
- cat /var/run/exim4/exim.pid
+ ls -al /run/exim4/
+ cat /run/exim4/exim.pid
pidof exim4
fi
if [ "$dc_eximconfig_configtype" = "none" ]; then
fi
if [ -n "$EX4DEBUG" ]; then
netstat -tulpen
- ls -al /var/run/exim4/
- cat /var/run/exim4/exim.pid
+ 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"