Patch to run the configuration check with ${rcexec} for consistent daemon_class
and related environment.
Index: nginx.rc
===================================================================
RCS file: /cvs/ports/www/nginx/pkg/nginx.rc,v
retrieving revision 1.14
diff -u -p -r1.14 nginx.rc
--- nginx.rc 11 Jan 2018 19:27:11 -0000 1.14
+++ nginx.rc 26 Jul 2018 19:47:54 -0000
@@ -9,7 +9,7 @@ daemon="${TRUEPREFIX}/sbin/nginx"
pexp="nginx: master process ${daemon}${daemon_flags:+ ${daemon_flags}}"
rc_reload() {
- ${daemon} ${daemon_flags} -t && pkill -HUP -xf "${pexp}"
+ ${rcexec} "${daemon} ${daemon_flags} -t" && pkill -HUP -xf "${pexp}"
}
rc_cmd $1