• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

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