static-web/run-httpd
Ask Bjørn Hansen e6b4191542
All checks were successful
continuous-integration/drone/push Build is passing
Check for ready file every 5 seconds instead of every 10
2023-06-15 20:32:24 -07:00

21 lines
404 B
Bash
Executable File

#!/bin/sh
set -ex
if [ ! -z "$READY_FILE" ]; then
while [ ! -e $READY_FILE ]; do
echo waiting for $READY_FILE
sleep 5
done
fi
if [ ! -z "$PRESTART_SCRIPT" ]; then
if [ ! -e "$PRESTART_SCRIPT" ]; then
echo configured prestart script "$PRESTART_SCRIPT" is missing
else
$PRESTART_SCRIPT
fi
fi
#exec httpd -DFOREGROUND -e info
exec httpd -DFOREGROUND -e debug