components/apache2/patches/apachectl.patch
changeset 1346 ebb3e4503fed
parent 1331 0d14e812ca53
equal deleted inserted replaced
1345:ee87318d9935 1346:ebb3e4503fed
     1 Allows SMF method to override Apache binary to start and thus select if
     1 --- support/apachectl.in.orig	Tue Jul 11 20:38:44 2006
     2 we want prefork/worker Apache MPM.
     2 +++ support/apachectl.in	Tue Feb 12 02:24:17 2008
     3 
     3 @@ -75,6 +75,12 @@
     4 --- support/apachectl.in	Tue Jul 11 20:38:44 2006
     4      ARGV="-h"
     5 +++ support/apachectl.in	Tue May 14 07:40:03 2013
     5  fi
     6 @@ -41,7 +41,7 @@
     6  
     7  # --------------------                              --------------------
     7 +if [ ! -d "@exp_runtimedir@" ]; then
     8  # 
     8 +    mkdir -p @exp_runtimedir@
     9  # the path to your httpd binary, including options if necessary
     9 +    chown -R webservd @exp_runtimedir@
    10 -HTTPD='@exp_sbindir@/@progname@'
    10 +    chgrp -R webservd @exp_runtimedir@
    11 +HTTPD=${HTTPD:-@exp_sbindir@/@progname@}
    11 +fi
    12  #
    12 +
    13  # pick up any necessary environment variables
    13  case $ARGV in
    14  if test -f @exp_sbindir@/envvars; then
    14  start|stop|restart|graceful|graceful-stop)
       
    15      $HTTPD -k $ARGV