> > https://access.redhat.com/solutions/4255211 > Может у кого-то есть сюда доступ? Здесь вроде как такая-же проблема > обсуждается
nginx does not start after server restart in the RHEL 8 SOLUTION VERIFIED - Updated July 1 2019 at 3:20 PM - English Environment Red Hat Enterprise Linux (RHEL) 8 nginx 1:1.14.1-8 Issue When restarting the server, the nginx service does not start automatically, as it does not resolve the hostname in the upstream configuration: Raw upstream test { ip_hash; server test.example.com; The error message: Raw host not found in upstream "test.example.com" in /etc/nginx/conf.d/configfile.conf:4 After that the server is up, nginx starts without issues. Resolution Create the file /etc/systemd/system/nginx.service.d/dependency.conf with contents: Raw [Unit] After=network-online.target Requires=network-online.target That means that nginx.service would depend on network-online.target meaning that it would start only after the network is started and system is online. Root Cause Currently nginx service depends on network.target. That means that it starts after network initiation is started, but not after the system is online. This is the expected behaviour as explained in BZ 1725248. Но вообще проще взять корректный юнит файл http://hg.nginx.org/pkg-oss/file/tip/rpm/SOURCES/nginx.service --- Respectfully, Dmitrii Kovalkov FASTVPS technical department пт, 28 февр. 2020 г. в 13:29, Илья Шипицин <chipits...@gmail.com>: > > > пт, 28 февр. 2020 г. в 15:16, windos321 <nginx-fo...@forum.nginx.org>: > >> https://access.redhat.com/solutions/4255211 >> Может у кого-то есть сюда доступ? Здесь вроде как такая-же проблема >> обсуждается >> > > необязательно, чтобы у кого-то доступ уже был. если его нет, его, > наверное, можно получить > > >> >> Posted at Nginx Forum: >> https://forum.nginx.org/read.php?21,287141,287165#msg-287165 >> >> _______________________________________________ >> nginx-ru mailing list >> nginx-ru@nginx.org >> http://mailman.nginx.org/mailman/listinfo/nginx-ru > > _______________________________________________ > nginx-ru mailing list > nginx-ru@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx-ru
_______________________________________________ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru