From the pppd man page:

 NOTES
        The following signals have the specified effect when  sent
       to the pppd process.

       SIGINT, SIGTERM
              These  signals cause pppd to terminate the link (by
              closing LCP), restore the serial  device  settings,
              and exit.

       SIGHUP This  signal  causes  pppd  to  terminate the link,
              restore the serial device settings, and  close  the
              serial  device.   If  the  persist  option has been
              specified, pppd  will  try  to  reopen  the  serial
              device  and  start  another  connection.  Otherwise
              pppd will exit.

       SIGUSR2
              This signal causes pppd to renegotiate compression.
              This  can  be useful to re-enable compression after
              it has been disabled as a result of a fatal  decomĀ­
              pression  error.   With  the  BSD  Compress scheme,
              fatal decompression errors generally indicate a bug
              in one or other implementation.


So do a kill -SIGTERM
Then it should clean up after itself.

On Sun, 22 Jun 1997, BG Lim wrote:
> Hi,
> 
> I used pppd to connect to my university, which has a 2 hour limit on
> connections.
> 
> Problem is, when pppd stops, it leaves the lock file in /var/lock. Do I
> have to remove the file itself?
> 
> Also is there a better way to stop pppd than just killing it?
> 
> 
> BG
> 
> 
> 
> 
> --
> TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
> [EMAIL PROTECTED] . 
> Trouble?  e-mail to [EMAIL PROTECTED] .
> 
> 

 ----------------  http://www.sound.net/~wpmills/  -----------------
: W. Paul Mills          : Bill, I was there several years ago.     :
: Topeka, Kansas, U.S.A. : Why would I want to go back tomorrow?    :
: [EMAIL PROTECTED]     : Where were you!                          :
: [EMAIL PROTECTED]      : ---------------------------------------- :
: [EMAIL PROTECTED]      : Linux:     Tomorrow's operating system,  :
: [EMAIL PROTECTED]      :            here, today.                  :
: [EMAIL PROTECTED]   : ---------------------------------------- :
: compuserve 70023,1750  : #define MY_TRUE_LOVE computer            :
 --------------  http://homepage.midusa.net/~wpmills/  -------------


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] .
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to