if EXIM_OPTS is e.g. set to -bd only. Easy fix: change stop to stop() { ebegin "Stopping exim" start-stop-daemon --stop --quiet --pidfile /var/run/exim.pid* eend $? }
This appears to have done it. stop() { ebegin "Stopping exim" start-stop-daemon --stop --quiet --exec /usr/sbin/exim eend $? }
stop() { ebegin "Stopping exim" start-stop-daemon --stop --quiet --exec /usr/sbin/exim eend $? } This should fix it, at least with exim-4. If anyone tests this with exim-3 let me know so I can close this.
Fixed. The new initscript works great.