Hello
I had trouble getting the OpenVPN daemon to run on system startup, after placing .conf file at /etc/openvpn/server/
I found what seems to be a bug in /lib/system/system-generators/openvpn-generator
1. the script does not search server and client subdirectories in /etc/openvpn/ directory
2. the name of the daemon created is openvpn@$NAME.service, not openvpn-server@$NAME.service and openvpn-client@$NAME.service
There were same errors in /etc/init.d/openvpn, but modifying openvpn-generator was sufficient to have it run on system startup.
My environment:
aws ec2, ubuntu 24.04 LTS
I had trouble getting the OpenVPN daemon to run on system startup, after placing .conf file at /etc/openvpn/server/
I found what seems to be a bug in /lib/system/system-generators/openvpn-generator
1. the script does not search server and client subdirectories in /etc/openvpn/ directory
2. the name of the daemon created is openvpn@$NAME.service, not openvpn-server@$NAME.service and openvpn-client@$NAME.service
There were same errors in /etc/init.d/openvpn, but modifying openvpn-generator was sufficient to have it run on system startup.
My environment:
aws ec2, ubuntu 24.04 LTS