lwb5-in-2025/game/run-lwb5.sh

21 lines
573 B
Bash
Raw Normal View History

#!/bin/bash
socat -u \
UNIX-LISTEN:/dev/log,reuseaddr,mode=666,fork \
SYSTEM:"(sed -z 's/$/\\\\n/'; /bin/echo)" \
&
2024-12-31 12:13:52 +01:00
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 "$@"