[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exim4 config for Lenny?



On Tue, May 06, 2008 at 11:52:49 -0400, Paul Cartwright wrote:

[...]

> # apt-get install apt-listbugs
> <SNIP>..
> Setting up apt-listbugs (0.0.88) ...
> Errors were encountered while processing:
>  exim4-daemon-light
>  exim4
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> # dpkg --configure exim4-daemon-light
> Setting up exim4-daemon-light (4.69-2+b1) ...
> Starting MTA:exim: incompatible command-line options or arguments
> invoke-rc.d: initscript exim4, action "start" failed.
> dpkg: error processing exim4-daemon-light (--configure):
>  subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
>  exim4-daemon-light
> # 
> 
> then we go to BTS:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476987
> 
> looks like it is a bug..

This has been fixed in Sid.

Your options right now:

1) Wait for the current Sid version to come to Lenny. This will happen
   three days from now, unless there is another upgrade of the package
   in Sid in the meantime.

2) Grab the relevant Sid packages and install them right away. (I think
   this should work, but I cannot guarantee it.)

3) Try to fix /etc/init.d/exim4 yourself. I have included the diff
   between the broken version 4.69-2+b1 and the fixed version 4.69-5+b1
   below. It should be possible to use this diff to patch ("man patch")
   the initscript. (Again, I think this should work, but I cannot
   guarantee it.)

------------------------------------------------------------------------

--- etc-init.d-exim4_4.69-2+b1_i386	2008-05-06 16:47:46.000000000 +0200
+++ etc-init.d-exim4_4.69-5+b1_i386	2008-05-06 16:48:30.000000000 +0200
@@ -21,7 +21,7 @@
 
 set -e
 
-if ! [ -x "/lib/lsb/init-functions" ]; then
+if [ -r "/lib/lsb/init-functions" ]; then
   . /lib/lsb/init-functions
 else
   echo "E: /lib/lsb/init-functions not found, lsb-base (>= 3.0-6) needed"
@@ -93,27 +93,37 @@
     combined)
       start_daemon -p "$PIDFILE" \
         "$DAEMON" -bd "-q${QFLAGS}${QUEUEINTERVAL}" \
-        "${COMMONOPTIONS}" "${QUEUERUNNEROPTIONS}" "${SMTPLISTENEROPTIONS}"
+        ${COMMONOPTIONS:+"${COMMONOPTIONS}"} \
+	${QUEUERUNNEROPTIONS:+"${QUEUERUNNEROPTIONS}"} \
+	${SMTPLISTENEROPTIONS:+"${SMTPLISTENEROPTIONS}"}
       log_progress_msg "exim4"
       ;;
     separate)
       start_daemon -p "$PIDFILE" \
-        "$DAEMON" -bd "${SMTPLISTENEROPTIONS}" "${COMMONOPTIONS}"
+        "$DAEMON" -bd \
+        ${COMMONOPTIONS:+"${COMMONOPTIONS}"} \
+	${SMTPLISTENEROPTIONS:+"${SMTPLISTENEROPTIONS}"}
       log_progress_msg "exim4_listener"
       start_daemon -p "$QRPIDFILE" \
-        "$DAEMON" -oP "$QRPIDFILE" \
-        "-q${QFLAGS}${QUEUEINTERVAL}" "${QUEUERUNNEROPTIONS}" "${COMMONOPTIONS}"
+        "$DAEMON" -oP $QRPIDFILE \
+        "-q${QFLAGS}${QUEUEINTERVAL}" \
+        ${COMMONOPTIONS:+"${COMMONOPTIONS}"} \
+	${QUEUERUNNEROPTIONS:+"${QUEUERUNNEROPTIONS}"}
       log_progress_msg "exim4_queuerunner"
       ;;
     queueonly)
       start_daemon -p "$QRPIDFILE" \
-        "$DAEMON" -oP "$QRPIDFILE" \
-        "-q${QFLAGS}${QUEUEINTERVAL}" "${QUEUERUNNEROPTIONS}" "${COMMONOPTIONS}"
+        "$DAEMON" -oP $QRPIDFILE \
+        "-q${QFLAGS}${QUEUEINTERVAL}" \
+        ${COMMONOPTIONS:+"${COMMONOPTIONS}"} \
+	${QUEUERUNNEROPTIONS:+"${QUEUERUNNEROPTIONS}"}
       log_progress_msg "exim4_queuerunner"
       ;;
     no|ppp)
       start_daemon -p "$PIDFILE" \
-        "$DAEMON" -bd "${SMTPLISTENEROPTIONS}"
+        "$DAEMON" -bd \
+        ${COMMONOPTIONS:+"${COMMONOPTIONS}"} \
+	${SMTPLISTENEROPTIONS:+"${SMTPLISTENEROPTIONS}"}
       log_progress_msg "exim4_listener"
       ;;
     nodaemon)

------------------------------------------------------------------------

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


Reply to: