Received: (at submit) by bugs.debian.org; 26 Apr 2001 13:11:46 +0000 From haber@plannet.de Thu Apr 26 08:11:46 2001 Return-path: Received: from mailrelay.plannet.de [212.126.200.57] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14slYg-0004CI-00; Thu, 26 Apr 2001 08:11:46 -0500 Received: from paola.int.plannet.de ([192.168.215.31] ident=mail) by mailrelay.planNET.de with esmtp (Exim 3.22 #1) id 14slYe-0001Ez-00; Thu, 26 Apr 2001 15:11:44 +0200 Received: from haber by paola.int.plannet.de with local (Exim 3.22 #1 (Debian)) id 14slYe-0000yc-00; Thu, 26 Apr 2001 15:11:44 +0200 From: Marc Haber To: Debian Bug Tracking System Subject: patch to use /etc/default to control queue runs and daemon parameters X-Reportbug-Version: 0.54 X-Mailer: reportbug 0.54 Date: Thu, 26 Apr 2001 15:11:44 +0200 Message-Id: Sender: Marc Haber Delivered-To: submit@bugs.debian.org Package: exim Version: 3.22-1planNET3 Severity: wishlist Hi, please consider the following patch against /etc/init.d/exim --- exim.orig Thu Apr 26 14:08:09 2001 +++ exim Thu Apr 26 14:26:18 2001 @@ -12,11 +12,17 @@ test -x $DAEMON || exit 0 +# Source defaults file. +EXIM_PARAMS="-bd -q30m" +if [ -f /etc/default/exim ]; then + . /etc/default/exim +fi + case "$1" in start) update-inetd --disable smtp echo -n "Starting MTA: " - start-stop-daemon --start --exec $DAEMON -- -bd -q30m + start-stop-daemon --start --exec $DAEMON -- $EXIM_PARAMS echo "exim." ;; stop) @@ -27,7 +33,7 @@ restart) echo "Restarting MTA: " start-stop-daemon --stop --oknodo --exec $DAEMON - start-stop-daemon --start --exec $DAEMON -- -bd -q30m + start-stop-daemon --start --exec $DAEMON -- $EXIM_PARAMS echo "exim." ;; reload|force-reload) and the following new file /etc/default/exim: # daemon parameters EXIM_PARAMS="-bd -q30m" # do queue runs in the cron job # set this to the empty string if you don't want queue runs EXIM_CRON_QUEUE_RUN="y" Together with /etc/cron.d/exim # /etc/cron.d/exim: crontab fragment for exim # Run queue every 30 minutes 08,38 * * * * mail . /etc/default/exim ; if [ -n "$EXIM_CRON_QUEUE_RUN" -a -x /usr/sbin/exim -a -f /etc/exim/exim.conf ]; then /usr/sbin/exim -q >/dev/null 2>&1; fi this will give pretty good control over exim daemon's behavior without having to change the conffiles /etc/init.d/exim and /etc/cron.d/exim. This conforms to Debian policy. Greetings Marc -- System Information Debian Release: 2.2 Architecture: i386 Kernel: Linux paola 2.2.19 #1 Wed Apr 18 19:00:04 CEST 2001 i686 Versions of packages exim depends on: ii cron 3.0pl1-57.2 management of regular background p ii libc6 2.1.3-17 GNU C Library: Shared libraries an ii libdb2 2:2.7.7-2.2planNET2.2 The Berkeley database routines (ru ii libident 0.22-2 simple RFC1413 client library - ru ii libldap2 2.0.7-2planNET2 OpenLDAP libraries. ii libpam0g 0.72-9 Pluggable Authentication Modules l ii libpcre3 3.3-5planNET5 Philip Hazel's Perl Compatible Reg ii libsasl7 1.5.24-5planNET5 Authentication abstraction library ii netbase 4.05planNET05 Basic TCP/IP networking system -- Configuration Files: /etc/cron.daily/exim changed [not included] /etc/ppp/ip-up.d/exim [Errno 13] Permission denied: '/etc/ppp/ip-up.d/exim'