• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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