[25275] in Athena Bugs
athena-sendmail does not run a queue flush daemon
daemon@ATHENA.MIT.EDU (Derek Atkins)
Mon Nov 3 20:52:46 2003
To: bugs@MIT.EDU
From: Derek Atkins <warlord@MIT.EDU>
Date: Mon, 03 Nov 2003 20:52:45 -0500
Message-ID: <sjmekwozyqa.fsf@kikki.mit.edu>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
--=-=-=
Hi,
If you send SENDMAIL=false then mail wont get flushed out of
the queue. The following patch to /etc/init.d/athena-sendmail
fixes the problem by running a queue-daemon if SENDMAIL is false
(and a regular background daemon if it's true).
-derek
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=sm.diff
Content-Description: Sendmail startup patch
--- athena-sendmail~ 2003-06-13 02:41:18.000000000 -0400
+++ athena-sendmail 2003-11-03 20:49:43.000000000 -0500
@@ -44,13 +44,16 @@
echo
if [ "$SENDMAIL" = true ]; then
- echo -n "Starting Athena sendmail;"
+ echo -n "Starting Athena sendmail;"
daemon sendmail -bd -q1h
RETVAL=$?
-
- echo
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/athena-sendmail
+ else
+ echo -n "Starting Athena sendmail (queue-runner);"
+ daemon sendmail -q1h
+ RETVAL=$?
fi
+ echo
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/athena-sendmail
;;
stop)
--=-=-=
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available
--=-=-=--