<HTML ><HEAD ><TITLE >Maintaining a permanent connection to the net with pppd.</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ "><LINK REL="HOME" TITLE="Linux PPP HOWTO" HREF="index.html"><LINK REL="UP" TITLE="Overview of what has to be done to get PPP working as a client" HREF="c463.html"><LINK REL="PREVIOUS" TITLE="Problems with standard IP services on a Dynamic IP number PPP link" HREF="x577.html"><LINK REL="NEXT" TITLE="Configuring your Linux Kernel" HREF="kernel-configuration.html"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" ><A HREF="http://www.linuxports.com/howto/ppp" TARGET="_top" >Linux PPP HOWTO</A ></TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="x577.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 9. Overview of what has to be done to get PPP working as a client</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="kernel-configuration.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="AEN582">9.15. Maintaining a permanent connection to the net with <EM >pppd</EM >.</H1 ><P >If you are fortunate enough to have a semi permanent connection to the net and would like to have your machine automatically redial your PPP connection if it is lost then here is a simple trick to do so.</P ><P >Configure PPP such that it can be started by the <TT CLASS="LITERAL" >root</TT > user by issuing the command: <TABLE BORDER="1" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="SCREEN" ># pppd</PRE ></FONT ></TD ></TR ></TABLE > <EM >Be sure</EM > that you have the `<TT CLASS="LITERAL" >-detach</TT >' option configured in your <TT CLASS="LITERAL" >/etc/ppp/options</TT > file. Then, insert the following line into your <TT CLASS="LITERAL" >/etc/inittab</TT > file, down with the <EM >getty</EM > definitions: <TABLE BORDER="1" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="SCREEN" >pd:23:respawn:/usr/sbin/pppd</PRE ></FONT ></TD ></TR ></TABLE > This will cause the <EM >init</EM > program to spawn and monitor the <EM >pppd</EM > program and automatically restart it if it dies.</P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="x577.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="kernel-configuration.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Problems with standard IP services on a Dynamic IP number PPP link</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="c463.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Configuring your Linux Kernel</TD ></TR ></TABLE ></DIV ></BODY ></HTML >