• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

VPN Services Do No Start After Reboot

V

vision

Guest
I've started using the VPN services (on a Fedora box), however the service is not starting automatically after I reboot.

When I look at the module, I have the switch to disable the module. After I reboot, it shows the service is enabled (button shows disable) but it does not work.

I have to disable, then enable and the VPN will start working.

Anyone know where to look to fix this problem?
 
I had same problem and after digging about it I have found the problem is that the psa-vpn init script doesn't create the file /var/lock/subsys/psa-vpn, this causes it to never run the script with stop param at runlevel 6 (reboot) as it should do, and therefore the pid file is never removed, which causes it to refuse to start at next reboot... to fix the problem, edit the file /etc/init.d/psa-vpn

search for:
Code:
    if $PRODUCT_ROOT_D/admin/sbin/modules/$MODULE/openvpn --config "$conf"; then
      echo "$SERVICE_NAME: OpenVPN has been started"
after this add:
Code:
      touch /var/lock/subsys/psa-vpn

search for:
Code:
    if [ -f "$pid" ]; then
      kill `cat "$pid"`
      rm -f "$pid"
after this add:
Code:
      rm -f /var/lock/subsys/psa-vpn

Then start/stop the service and it will now work correcty after reboot.
 
Back
Top