Reduce commands in Dockerfiles to stay under the 42-layer limit for AUFS
(https://github.com/dotcloud/docker/issues/1171)
--- /dev/null
+#! /bin/bash
+
+read pid cmd state ppid pgrp session tty_nr tpgid rest < /proc/self/stat
+trap "kill -TERM -$pgrp; exit" EXIT TERM KILL SIGKILL SIGTERM SIGQUIT
+
+source /etc/apache2/envvars
+/usr/sbin/apache2 -D FOREGROUND
--- /dev/null
+[supervisord]
+nodaemon=true
+
+[program:postgres]
+user=postgres
+command=/usr/lib/postgresql/9.1/bin/postgres -D /var/lib/postgresql/9.1/main -c config_file=/etc/postgresql/9.1/main/postgresql.conf
+
+[program:apache2]
+command=/etc/apache2/foreground.sh
+stopsignal=6