Install OpenVPN-2.3.7 from source and enable at startup help

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
nbngetv
OpenVpn Newbie
Posts: 4
Joined: Mon Jun 15, 2015 6:13 pm

Install OpenVPN-2.3.7 from source and enable at startup help

Post by nbngetv » Mon Jun 15, 2015 6:20 pm

Hi, I have installed OpenVPN version 2.3.7 tar.gz for Linux, downloaded from here: https://openvpn.net/index.php/open-sour ... loads.html
OpenVPN is being installed and it seems to work, however, it is not run as a daemon. If I issue the command:

service opnvpn status / start / stop

it says: "openvpn : unrecognized service"

The only way I can run it is by using the command:

openvpn --config /etc/openvpn/server.conf --daemon

But I would like to use the service command and it must start automatically at system startup. How can I achieve that?
The commands I issued to install version 2.3.7 are:

./configure
make
make install

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Install OpenVPN-2.3.7 from source and enable at startup

Post by Traffic » Tue Jun 16, 2015 4:40 pm

Either include the --daemon parameter in your startup script or the config file.

See --daemon in The Manual v23x

nbngetv
OpenVpn Newbie
Posts: 4
Joined: Mon Jun 15, 2015 6:13 pm

Re: Install OpenVPN-2.3.7 from source and enable at startup

Post by nbngetv » Tue Jun 16, 2015 5:33 pm

I do not have a startup script, do I need to create one? Because if I install Openvpn with a package manager (apt-get install openvpn), I can issue commands such as service openvpn ... and there are init scripts in /etc/rcX.
When I install version 2.3.7 there are no init scripts, is that normal?

nbngetv
OpenVpn Newbie
Posts: 4
Joined: Mon Jun 15, 2015 6:13 pm

Re: Install OpenVPN-2.3.7 from source and enable at startup

Post by nbngetv » Tue Jun 16, 2015 7:47 pm

I do not have a startup script, should I create one? When I install OpenVPN with a package manager (apt-get install openvpn), the service command works and there are Openvpn init files int /etc/rcX.. but that is an old version (2.1..). Version 2.3.7 does not add any init scripts and the service openvpn is not recognized when I use the server openvpn start/stop/status command, is that normal?

P.S.
Not sure if my other post about this was posted or not, if so, this one can be deleted.

Post Reply