#!/bin/bash socat -u \ UNIX-LISTEN:/dev/log,reuseaddr,mode=666,fork \ SYSTEM:"(sed -z 's/$/\\\\n/'; /bin/echo)" \ & perl /opt/lwb5/scripts/control.pl --start : "${APACHE_CONFDIR:=/etc/apache2}" : "${APACHE_RUN_DIR:=/run/apache2}" : "${APACHE_PID_FILE:=$APACHE_RUN_DIR/apache2.pid}" : "${APACHE_LOG_DIR:=/var/log/apache2}" : "${APACHE_RUN_USER:=www-data}" : "${APACHE_RUN_GROUP:=www-data}" rm -f "$APACHE_PID_FILE" export APACHE_CONFDIR APACHE_RUN_DIR APACHE_PID_FILE \ APACHE_LOG_DIR APACHE_RUN_USER APACHE_RUN_GROUP exec /usr/sbin/apache2 -DFOREGROUND "$@"