I recently upgraded my server to FreeBSD 13.0 from 12.x. Current nginx version is nginx-1.20.2_1,2 (installed from pkg).
With FreeBSD 12.x (and 11.x and...) I ran the command
Starting with FreeBSD 13.0, when I ran that same command, I'd see the following error message for the nginx startup:
Long story short...
For some reason, since FreeBSD 13.0,
As a work-around, I modified the /usr/local/etc/rc.d/nginx script, adding unbound to the # REQUIRE section:
No more warning when I restart all the services.
But now I do have the concern that my change may be overwritten when the nginx pkg is updated.
With FreeBSD 12.x (and 11.x and...) I ran the command
service -R
and all the services stopped and started without any issues.Starting with FreeBSD 13.0, when I ran that same command, I'd see the following error message for the nginx startup:
Code:
nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "stg-e1.o.lencr.org" in the certificate "/usr/local/etc/certs/public/www.example.com.crt"
Long story short...
For some reason, since FreeBSD 13.0,
service -R
stops all the services, then it starts up nginx before unbound is started. Since unbound is not yet started, the nginx -t
configuration check produces the above warning, as it cannot find a DNS resolver. (in my nginx.conf, I have the following resolver 127.0.0.1
)As a work-around, I modified the /usr/local/etc/rc.d/nginx script, adding unbound to the # REQUIRE section:
Code:
# REQUIRE: LOGIN cleanvar unbound
No more warning when I restart all the services.
But now I do have the concern that my change may be overwritten when the nginx pkg is updated.