Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: using jabber for RPC or inter-server-communication

by skx (Parson)
on Jul 29, 2003 at 09:39 UTC ( #278784=note: print w/replies, xml ) Need Help??


in reply to Re: using jabber for RPC or inter-server-communication
in thread using jabber for RPC or inter-server-communication

 I guess the problem here is that if the interface is down the ping will cause it to come up - forcing the ping to be always true.

 If the pppd has a startup delay and you force ping to only send one or two packets, though, then this approach might work.

 My solution would be to have the 'ifup' script touch a file in /tmp, and the 'ifdown' script remove it.

 Then, barring crashes/weirdness testing the connection status is as simple as testing for the existence of the file in /tmp.

Steve
---
steve.org.uk
  • Comment on Re: using jabber for RPC or inter-server-communication

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://278784]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2020-12-02 19:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (44 votes). Check out past polls.

    Notices?