#!/bin/sh sleep 5; export LANG="C" export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" exec 2>&1 echo "Starting web server: apache2" # # From /usr/sbin/apache2ctl Apache2 wrapper # # the path to your httpd binary, including options if necessary HTTPD='/usr/sbin/apache2' # # pick up any necessary environment variables if test -f /etc/apache2/envvars; then . /etc/apache2/envvars fi # Set this variable to a command that increases the maximum # number of file descriptors allowed per child process. This is # critical for configurations that use many file descriptors, # such as mass vhosting, or a multithreaded server. ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`" # Set the maximum number of file descriptors allowed per child process. if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then $ULIMIT_MAX_FILES fi exec $HTTPD -k start -DSSL -DFOREGROUND