LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-23-2022, 12:35 PM   #1
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Rep: Reputation: 68
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 :-)
 
Old 04-24-2022, 06:41 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,454
Blog Entries: 7

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557
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...

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN 2.4.5-1 fails to start with: "fopen `/var/run/openvpn.pid': No such file or directory". ToffeeYogurtPots Linux - Software 2 04-07-2018 06:48 AM
Confluence PID issue. (Removing/clearing stale PID file) vignesh4sh Linux - Server 5 12-05-2012 07:14 AM
Stopping pcspkr/PC_BEEP on shutdown and restarting Xserver? mrm5102 Linux - Hardware 4 04-16-2012 10:36 AM
stopping and restarting x on fedora Crasherz Linux - Newbie 4 02-25-2004 08:56 PM
Starting / Stopping / Restarting Services in VA Linux? abell Linux - General 1 11-15-2002 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration