Page 1 of 1

Install OpenVPN-2.3.7 from source and enable at startup help

Posted: Mon Jun 15, 2015 6:20 pm
by nbngetv
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

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

Posted: Tue Jun 16, 2015 4:40 pm
by Traffic
Either include the --daemon parameter in your startup script or the config file.

See --daemon in The Manual v23x

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

Posted: Tue Jun 16, 2015 5:33 pm
by nbngetv
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?

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

Posted: Tue Jun 16, 2015 7:47 pm
by nbngetv
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.