Bug#355749: exim4-base: conffile prompt for etch upgrade
Justin Pryzby
justinpryzby at users.sourceforge.net
Tue Mar 7 17:06:14 UTC 2006
Package: exim4-base
Version: 4.60-4
Severity: important
The attached diff was presented to me while updating exim4 from
version 4.60-3; I didn't make the indicated changes, so I shouldn't
need to be prompted about them.
If you're not familiar with conffile prompting issues, see my message
to bug #345112 and friends.
-------------- next part --------------
--- /etc/init.d/exim4 2005-08-16 12:07:46.000000000 -0400
+++ /etc/init.d/exim4.dpkg-new 2006-01-28 09:56:53.000000000 -0500
@@ -13,6 +13,8 @@
set -x
fi
+ENV="env -i LANG=C PATH=$PATH"
+
#read default file
QUEUERUNNER='combined'
QUEUEINTERVAL='30m'
@@ -42,8 +44,9 @@
exit 0
fi
-DAEMON=/usr/sbin/exim4
-NAME=exim4
+
+DAEMON="/usr/sbin/exim4"
+NAME="exim4"
##test -x $DAEMON || exit 0
test -x /usr/lib/exim4/exim4 || exit 0
@@ -52,24 +55,24 @@
{
case ${QUEUERUNNER} in
combined)
- start-stop-daemon --start --pidfile "$PIDFILE" \
+ $ENV start-stop-daemon --start --pidfile "$PIDFILE" \
--exec $DAEMON -- -bd -q${QFLAGS}${QUEUEINTERVAL} \
${COMMONOPTIONS} ${QUEUERUNNEROPTIONS} ${SMTPLISTENEROPTIONS}
;;
separate)
- start-stop-daemon --start --pidfile "$PIDFILE" \
+ $ENV start-stop-daemon --start --pidfile "$PIDFILE" \
--exec $DAEMON -- -bd ${SMTPLISTENEROPTIONS} ${COMMONOPTIONS}
- start-stop-daemon --start --pidfile "$QRPIDFILE" \
+ $ENV start-stop-daemon --start --pidfile "$QRPIDFILE" \
--exec $DAEMON -- -oP "$QRPIDFILE" \
-q${QFLAGS}${QUEUEINTERVAL} ${QUEUERUNNEROPTIONS} ${COMMONOPTIONS}
;;
queueonly)
- start-stop-daemon --start --pidfile "$QRPIDFILE" \
+ $ENV start-stop-daemon --start --pidfile "$QRPIDFILE" \
--exec $DAEMON -- -oP "$QRPIDFILE" \
-q${QFLAGS}${QUEUEINTERVAL} ${QUEUERUNNEROPTIONS} ${COMMONOPTIONS}
;;
no|ppp)
- start-stop-daemon --start --pidfile "$PIDFILE" \
+ $ENV start-stop-daemon --start --pidfile "$PIDFILE" \
--exec $DAEMON -- -bd ${SMTPLISTENEROPTIONS}
;;
nodaemon)
@@ -110,7 +113,7 @@
{
SIG="${1:-TERM}"
for pid in $(pidof $NAME); do
- if [ "$(readlink /proc/$pid/root)" == "/" ]; then
+ if [ "$(readlink /proc/$pid/root)" = "/" ]; then
kill -$SIG $pid
fi
done
More information about the Pkg-exim4-maintainers
mailing list