• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Resolved startup order of things

tkalfaoglu

Silver Pleskian
Hi. When the server restarts, I noticed that the nginx did not start. Upon examining, I found that its configuration file contained all the IP's of the system, including 10.10.0.1, which I use for the OpenVPN (it's the IP of the server).. So, if the OpenVPN server is not yet running, nginx doesn't start. Is there a way to order these startups, so that the above IP is defined before nginx tries to bind to it?

The system is a modern AlmaLinux 8.5.

Thanks!
 
Looks like you have a non-standard setup.
Your question is not really related to Plesk but more to systemd. You can set dependencies in systemd.
You may want to create a systemd drop-in for nginx and make nginx dependant on your openvpn service, example:
systemctl edit nginx.service
Then add (not tested!):
(Your OpenVPN service may have a different name, adjust it to your setup)

If this doesn't work, try this:
[Unit]
After=network-online.target remote-fs.target nss-lookup.target [email protected]

Then do systemctl daemon-reload and try again

More info about systemd: systemd.unit
 
Back
Top