LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   rc.openvpn not stopping / restarting OpenVPN because of stale PID's (https://www.linuxquestions.org/questions/slackware-14/rc-openvpn-not-stopping-restarting-openvpn-because-of-stale-pids-4175711168/)

xj25vm 04-23-2022 12:35 PM

rc.openvpn not stopping / restarting OpenVPN because of stale PID's
 
There is already a comment about this in rc.openvpn. I can confirm that often when doing:

Code:

/etc/rc.d/rc.openvpn restart
nothing happens. I'm not sure why, but the openvpn process seems to change pid at some point, and then whatever is contained in /run/openvpn/*.pid is out of date. I agree with the suggestion from rc.openvpn that 'killall openvpn' should be used instead. Could this plea make it to those in high up places please :-)

rkelsen 04-24-2022 06:41 PM

Which version of Slackware are you running?

Is this on a server or client?

I'm not sure if this is what you're asking, but the rc.openvpn script in Slackware64-15.0 is designed to use "killall openvpn" in the right conditions.

Perhaps I'm a relative newcomer, but we've been using OpenVPN pretty much 24x7 here since around March 2020 and haven't seen the behaviour you describe. Our main OpenVPN server has been up for 524 days, with 6 users on it for 8 hours a day and the PIDs of the openvpn processes match the contents of /run/openvpn/*.pid. In all honesty, I can't figure out how you'd get into a situation where they don't... :scratch:

What exactly are you seeing? Are there any errors in your logs which might help?


All times are GMT -5. The time now is 03:06 AM.