[2934] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Keepalive!

daemon@ATHENA.MIT.EDU (Robert Hart)
Wed Nov 6 04:36:54 1996

Date: Wed, 6 Nov 1996 20:34:31 +1100 (EST)
From: Robert Hart <hartr@interweft.com.au>
Reply-To: Robert Hart <iweft@ipax.com.au>
To: RedHat-List <redhat-list@redhat.com>
In-Reply-To: <Pine.LNX.3.95.961105222212.1768B-100000@madq80.com>
Resent-From: redhat-list@redhat.com

On Tue, 5 Nov 1996 redhat-list@madq80.com wrote:

> 	Have anyone figure ouyt , how to get the keeplaive script to work
> for a static PPP connection? I tried that one I use to use in Slakware,
> but for somereason it didn't work! so please help me if you got it to
> work, or got any workable script that will get if the connections is
> alive, and if it's not, it will execute ppp-on to bring it up.

This is what I do...

1) Set up standard ppp-on and pp-on-dialer scripts and make sure they work
fine.

2) Create a script (I put it in /usr/local/scripts) like this...

#!/bin/bash
#
LOCKDIR=/var/lock
DEVICE=cua1

if [ -f $LOCKDIR/LCK..$DEVICE ]
then
   rm -f $LOCKDIR/LCK..$DEVICE
   echo "Removing stale lock files"
fi

while sleep 5; do
   /bin/setserial /dev/ttyS1 spd_vhi
   /etc/ppp/scripts/ppp-ipax-perm
   rm -f $LOCKDIR/LCK..$DEVICE
done

As I have a permanent link, I fire this off in /etc/rc.d/rc.sysinit. If
the link fails, this script will simply fire it up again.

Robert Hart                                  iweft@ipax.com.au
Voice: +61 (0)3 9735 3586		     http://203.29.72.65/
InterWeft, 35 Summit Road, Lilydale, Victoria 3140, Australia
        IT, data and voice networking
        Strategic IT business planning
        Internet planning, implementation, security and configuration


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post