[4330] in linux-net channel archive
Re: inittab file
daemon@ATHENA.MIT.EDU (Michael Slater)
Mon Sep 9 12:07:45 1996
Date: Mon, 9 Sep 1996 22:36:01 +0800 (WST)
From: Michael Slater <aonline@sol.tnet.com.au>
To: Robert Carew <Robert.Carew@msc.ie>
cc: "'linux-ppp@vger.rutgers.edu'" <linux-ppp@vger.rutgers.edu>,
"'linux-net@vger.rutgers.edu'" <linux-net@vger.rutgers.edu>
In-Reply-To: <01BB9E5E.0ABB92C0@opc015>
How about the following in /etc/ppp
saved as ip-down
--------------------------
#!/bin/sh
RIP=$5
case $RIP in
my.hosts.ip.address)
/usr/sbin/my_dial_script_goes_here
;;
esac
-------------------------
works for me every time.
------------------------------------------
Michael Slater
aonline@tnet.com.au
http://www.tnet.com.au/~aonline
------------------------------------------
On Mon, 9 Sep 1996, Robert Carew wrote:
> Greetings,
>
> I have a wee problem - when our pppd daemon goes down as it sometimes does I want it to re-start automatically.
>
> At the moment I have a script which checks whether the daemon is running and restarts it if it goes down. This check is done every sixty seconds and uses system resources.
>
> I suppose this is fine, but I would like it to restart instantly.
> I have an entry in the innitab file which I think should respawn the process but it doesn't. The following is the line from the inittab file:
>
> pp:3:respawn:/usr/sbin/pppd /dev/cua0 19200 passive lock crtscts defaultroute 194.125.117.1:
>
> Where am I going wrong
> I am currently running Linux 1.3.97 with a 19200 modem.
>
> Thanks in advance
> Robert.
>