On Tue, May 14, 2019 at 11:30:29AM -0700, Eric Eberhard wrote: > That is not a bad idea. I'd wrap it in a C program so I could check > if the pppd is alive and not a zombie. BUT -- it begs the question, > why only ONE? Every time this happens the process ID would change. > Is it serialization or? I am thinking there is something we don't > know ... I have offered Martin some help ...
pppd is a pretty solid piece of software. Never seen it hang as a zombie. Only one because for a given static ip address you can only use it once - Given that your static ip address is bound to a specific peer name you should kill all other pppd's for that peer. Abusing either "linkname" to get pppd to write a pid file with a known pid file or finding the right pid file with the route which points to the interface which is part of the default pid file name. So we can find the "other" pppd still running because it did not yet detect the tcp sessions with stunnel beeing disconnected. This is what the lcp echo feature is for. pppd will send echo frames in the Link Control Protocol (LCP) on a regular basis if there is no incoming traffic. Missing the echo reply will lead pppd to terminate and free up the interface and through that the static ip address assigned to that peer. Flo -- Florian Lohoff [email protected] UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away
signature.asc
Description: PGP signature
_______________________________________________ stunnel-users mailing list [email protected] https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
