LinuxQuestions.org
Help answer threads with 0 replies.
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 11-13-2013, 06:49 AM   #1
xj25vm
Member
 
Registered: Jun 2008
Posts: 399

Rep: Reputation: 70
Can we have a rc.openvpn in Slackware please


It seems to me that most, if not all, other programs meant to be run as daemons in Slackware get their rc script. However, openvpn still doesn't have one. Can we have a simple script which takes care of starting one openvpn instance for each config file ending in .ovpn or .conf in /etc/openvpn please.

I've been using the script found at the bottom of the following link for years - which is suitable for both server and client setups - but it seems to me that Slackware could do with having one by default:

http://openvpn.net/archive/openvpn-u.../msg00030.html

Last edited by xj25vm; 11-13-2013 at 06:54 AM. Reason: Default location for .conf files has changed to /etc/openvpn it seems
 
Old 11-14-2013, 12:17 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118
Never hurts to ask Mr. Volkerding if he can include a script for it, or even a sample script. Not a bad suggestion though.

+1 for a good idea.

Last edited by ReaperX7; 11-14-2013 at 12:18 AM.
 
Old 11-14-2013, 03:03 AM   #3
xj25vm
Member
 
Registered: Jun 2008
Posts: 399

Original Poster
Rep: Reputation: 70
Quote:
Never hurts to ask Mr. Volkerding if he can include a script for it, or even a sample script. Not a bad suggestion though.
Any idea how does one do that? Is there an "official" channel for new features suggestions for Slackware?
 
Old 11-14-2013, 03:48 AM   #4
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Just use your script as /etc/rc.d/rc.openvpn, make it executable and then add an entry at the bottom of /etc/rc.d/rc.M just before
Code:
# Start the local setup procedure.
if [ -x /etc/rc.d/rc.local ]; then
  . /etc/rc.d/rc.local
fi

# All done.
Which is like this.

Code:
# Start the openvpn procedure.
if [ -x /etc/rc.d/rc.openvpn ]; then
  . /etc/rc.d/rc.openvpn
fi
samac

Last edited by samac; 11-14-2013 at 03:49 AM.
 
Old 11-14-2013, 04:05 AM   #5
xj25vm
Member
 
Registered: Jun 2008
Posts: 399

Original Poster
Rep: Reputation: 70
Hmm - there seems to be a misunderstanding. I wasn't asking how to use the script - I've been using it for years - as per my first post.

As per my post above your reply, I was asking how would it be possible to suggest the script to Mr. Volkerding for inclusion in Slackware.

Last edited by xj25vm; 11-14-2013 at 04:06 AM.
 
Old 11-14-2013, 04:19 AM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118
Patrick reads the forums, but you could try a private message.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 routing within Slackware dimm0k Slackware 3 07-07-2013 12:15 PM
[SOLVED] Slackware, OpenVPN and Mullvad derrekito Linux - Software 2 03-27-2012 08:51 PM
openvpn-as in slackware nass Slackware 5 03-10-2011 10:28 AM
Help with OpenVPN on Slackware (and using OpenSSL) sauce Slackware 8 03-08-2007 03:39 AM
openvpn install on slackware smarthouseguy Slackware 6 10-01-2006 03:00 PM

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

All times are GMT -5. The time now is 09:57 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