for the server:
create a file at /etc/66/service/openvpn-server@ with the following
[main]
@type = classic
@version = 0.0.1
@description = "OpenVPN server daemon"
@user = ( root )
[start]
@runas = openvpn
@execute = (
cd /etc/openvpn/server
execl-cmdline -s { openvpn ${conf_file} }
)
[environment]
conf_file=!--status /run/openvpn-server/status-@I.log --status-version 2 --suppress-timestamps --config @I.conf
be sure to have an existing configuration file at /etc/openvpn/server/ with the name used to enable the service. For example, if you do 66-enable openvpn-server@myenterprise you need to name the configuration file myenterprise.conf
for the client
create a file at /etc/66/service/openvpn-client@ with the following
[main]
@type = classic
@version = 0.0.1
@description = "OpenVPN client daemon"
@user = ( root )
[start]
@runas = openvpn
@execute = (
cd /etc/openvpn/client
execl-cmdline -s { openvpn ${conf_file} }
)
[environment]
conf_file=!--suppress-timestamps --nobind --config @I.conf
Again, be sure to have the corresponding configuration file at /etc/openvpn/client.
like said @advesperascit, no warranties etc
Please tell us if you got it running correctly