summaryrefslogtreecommitdiff
path: root/httpd-foreground
diff options
context:
space:
mode:
Diffstat (limited to 'httpd-foreground')
-rw-r--r--httpd-foreground7
1 files changed, 7 insertions, 0 deletions
diff --git a/httpd-foreground b/httpd-foreground
new file mode 100644
index 0000000..e896168
--- /dev/null
+++ b/httpd-foreground
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+# Apache gets grumpy about PID files pre-existing
+rm -f /usr/local/apache2/logs/httpd.pid
+
+exec httpd -DFOREGROUND "$@"