From 3386b1ab80071055a9cb2f655fc6806337946182 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 23 Aug 2021 13:18:43 +0200 Subject: [PATCH] trying to get rid of segfault, changing to ubuntu --- httpd-foreground | 3 ++- httpd-foreground alpine | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 httpd-foreground alpine diff --git a/httpd-foreground b/httpd-foreground index e109f0e..b258bf4 100644 --- a/httpd-foreground +++ b/httpd-foreground @@ -4,4 +4,5 @@ set -e # Apache gets grumpy about PID files pre-existing rm -f /run/apache2/httpd.pid -exec httpd -DFOREGROUND "$@" \ No newline at end of file +source /etc/apache2/envvars +exec apache2 -DFOREGROUND "$@" \ No newline at end of file diff --git a/httpd-foreground alpine b/httpd-foreground alpine new file mode 100644 index 0000000..e109f0e --- /dev/null +++ b/httpd-foreground alpine @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +# Apache gets grumpy about PID files pre-existing +rm -f /run/apache2/httpd.pid + +exec httpd -DFOREGROUND "$@" \ No newline at end of file