When restarting the server, the nginx service does not start automatically, as it does not resolve the hostname in the upstream configuration:
upstream test {
ip_hash;
server test.example.com;
The error message:
host not found in upstream...