著者: Sheldon Hearn 日付: To: Björn Lindström CC: exim-users 題目: Re: [Exim] invert queue_only_file?
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.