[Exim] Re: invert queue_only_file?

Top Page
Delete this message
Reply to this message
Author: Björn Lindström
Date:  
To: exim-users
Subject: [Exim] Re: invert queue_only_file?
Sheldon Hearn <sheldonh@???> writes:

> On (2003/10/18 03:12), Björn Lindström wrote:
>
>> I have this thing in my exim.conf:
>>
>> queue_only_file = smtp/var/run/offline
>>
>> and it works alright. But I think there should be a way to invert this,
>> so it can just check for /var/run/pppd0.pid instead. Is there some way
>> to do that?
>
> I don't think so. However, it seems to me that it would make more sense
> to get the thing that manages your ppp connections to write a file.
>
> FreeBSD's ppp(8), for example, has the notion of linkup and linkdown
> scripts. When the link comes up, /etc/ppp/ppp.linkup is run; when it
> goes down, /etc/ppp.linkdown is run.
>
> So you could just "touch /var/run/exim.queue_only" in ppp.linkup and
> "rm /var/run/exim.queue_only" in ppp.linkdown.
>
> Given that there are many things you may want to do when the link comes
> up and goes down, your ppp manager is a good place for this to be
> implemented, rather than Exim having to learn another hoop to jump
> through.


Duh, that's just the thing I'm doing now. It just feels redundant to
have to touch/remove stuff in the ip-up/down scripts, when pppd is
already creating a file for this very purpose when it connects.

Also, since Exim's configuration files are so flexible otherwise, it
would feel strange if it isn't possible to invert a simple statement
like this.

--
Björn Lindström <bkhl@???>
http://bkhl.elektrubadur.se/