Currently in apache2.rc start action uses $daemon_flags, but stop
action does not. If apache2_flags is set to "-f /home/www/httpd.conf"
and all other options are derived form this config file, rc script
will not be able to stop or restart the server.
Patch to add missing $daemon_flags:
Index: pkg/apache2.rc
===================================================================
RCS file: /cvs/ports/www/apache-httpd/pkg/apache2.rc,v
retrieving revision 1.5
diff -u -u -p -r1.5 apache2.rc
--- pkg/apache2.rc 11 Jan 2018 19:27:11 -0000 1.5
+++ pkg/apache2.rc 3 Jun 2018 03:51:23 -0000
@@ -15,7 +15,7 @@ rc_start() {
}
rc_stop() {
- ${TRUEPREFIX}/sbin/apachectl2 graceful-stop
+ ${TRUEPREFIX}/sbin/apachectl2 graceful-stop ${daemon_flags}
}
rc_cmd $1
No comments:
Post a Comment