Re: [Exim] Having exim look for multiple configuration files

Top Page
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: exim-users
Subject: Re: [Exim] Having exim look for multiple configuration files
On Sun, 24 Nov 2002, Marc Haber wrote:

> two configuration files and to use the first it finds. This could be


If this is done, please be sure to clearly log (or report) which
configuration file is in use.

> configuration. I consider this very ugly, and would prefer to have
> exim only look for the /var config file if none is found in /etc. This


Could this be done for Debian within Debian's /etc/init.d/exim script?

update-inetd --disable smtp
if [ -f /etc/exim.conf ] ; then
echo -n "Starting MTA: "
start-stop-daemon --start --exec $DAEMON -- -bd -q30m
echo "exim."
elif [ -f /var/whatever/exim.conf ] ; then
echo -n "Starting MTA: "
start-stop-daemon --start --exec $DAEMON -- -C /var/whatever/exim.conf -bd -q30m
echo "exim (using /var/whatever/exim.conf configuration)."
else
echo "Exim not started. No configuration."
fi

  Jeremy C. Reed
......................................................
     ISP-FAQ.com -- find answers to your questions
     http://www.isp-faq.com/