ports/www/apache24/files/patch-support__apachectl.in
Olli Hauer 5391a9beb2 - update to 2.4.12
- change MPM backend from static to dynamic,
  but keep mpm_prefork for compatiblity with e.g. php modules
- install dedicated MPM load file in case httpd was build with modular MPM
  (modules.d/000_mpm_prefork_fallback.conf)
- disable SSLv3 and SSLv2 fallback in sample httpd-ssl-conf
- use @sample macro instead EXAMPLESDIR
- add some SSLCipherSuite examples for OpenSSL >= 1.0.x
- add libressl support [1]
- add pkg-install script (to handle new modular MPM build)
- build now most all modules, so users using packages don't have
  to run a custom build for missing modules
- fix suexec mode

PR:		196139 [1]
MFH:		2015Q1
2015-01-31 15:22:51 +00:00

52 lines
1.4 KiB
Text

--- support/apachectl.in.orig 2012-02-01 03:47:28 UTC
+++ support/apachectl.in
@@ -43,6 +43,7 @@ ARGV="$@"
#
# the path to your httpd binary, including options if necessary
HTTPD='@exp_sbindir@/@progname@'
+SERVICE='/usr/sbin/service apache24'
#
# pick up any necessary environment variables
if test -f @exp_sbindir@/envvars; then
@@ -66,19 +67,21 @@ ULIMIT_MAX_FILES="@APACHECTL_ULIMIT@"
# -------------------- --------------------
# |||||||||||||||||||| END CONFIGURATION SECTION ||||||||||||||||||||
+eval `limits -e -C daemon` >/dev/null 2>&1
# Set the maximum number of file descriptors allowed per child process.
if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then
$ULIMIT_MAX_FILES
fi
ERROR=0
-if [ "x$ARGV" = "x" ] ; then
- ARGV="-h"
+if [ "x$ACMD" = "x" ] ; then
+ ACMD="-h"
fi
case $ACMD in
-start|stop|restart|graceful|graceful-stop)
- $HTTPD -k $ARGV
+start|stop|restart|rcvar|reload|graceful|gracefulstop|graceful-stop)
+# $HTTPD -k $ARGV
+ $SERVICE $( echo $ACMD | tr -d '-' )
ERROR=$?
;;
startssl|sslstart|start-SSL)
@@ -88,11 +91,13 @@ startssl|sslstart|start-SSL)
ERROR=2
;;
configtest)
- $HTTPD -t
+# $HTTPD -t
+ $SERVICE $ACMD
ERROR=$?
;;
status)
- $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } '
+# $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } '
+ $SERVICE $ACMD
;;
fullstatus)
$LYNX $STATUSURL