On Fri, 10 Jan 2003, Rajesh wrote:

> In /etc/ppp/ip-up.local you can add last line as
> 
> /usr/sbin/sendmail -q -v
> /usr/bin/fetchmail .............
> killall wvdial
> 
> Thus after sending and fetching mail connection will be disconnected.

so how would i surf the net if my connection drops everytime I set it 
up.  I don't need to kill wvdial - I know how to do that.  What I need, 
is to execute ip-down before pppd dies.  I've solved it now by using 
ifup/ifdown and using wvdial as my chat program.  Works well.

So... next question.  How do I tell sendmail to stop processing the 
queue?  This is what I do:

I have sendmail running in daemon mode - by default it will deliver
local mails immediately and queue outgoing mails (that require smtp) for
as long as necessary.  In ip-up.local, I have sendmail -q2m - to flush 
the queue every two minutes.  This is fine, except that I now have two 
sendmail processes running.  One is the daemon started from rc.sysinit, 
and the second one started from ip-up.local.

In ip-down.local, I could do something like killall -HUP sendmail - 
which would cause all to die, and the daemon to restart.  However, this 
could also kill sendmail processes that are currently processing the 
queue.  So, I need to add sendmail -q before the killall line, and wait 
for that to terminate.

Does it sound right till now?  I'm mostly thinking aloud here.

So, all seems fine, except if the sendmail process that is currently 
processing the queue can't do its job - possibly because of a very slow 
internet connection... in fact, a slow internet connection is one of the 
reasons that I need to powercycle (if I may use the term in this 
context) the net connection.

So, I need to disconnect because of a slow connection, but I can't 
disconnect because of the slow connection.  Sure, I could fix it as root 
by doing the killall manually, but... my sis can't.

I'm sure there's a simpler solution.  Just need some more eyeballs here.

Philip

-- 
Yes, we will be going to OSI, Mars, and Pluto, but not necessarily in
that order.
                -- Jeffrey Honig



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to