#!/bin/bash # XXX container is not admin interface we do not need apache do not launch it. set -e # ============================ run apache ============================ # if [ -f "/etc/container_environment.sh" ]; then source /etc/container_environment.sh; fi; echo "starting apache" mkdir -p /var/log/apache2 chgrp www-data /var/log/apache2 chmod g+rwx /var/log/apache2 /usr/sbin/apache2ctl -D namaste -k start echo "done" # ========================= start ssh server ========================= echo "starting ssh server" service ssh start echo "done" # ============================ run namaste =========================== echo "starting namaste" su app -l -s /bin/bash -c "/usr/bin/php /home/app/scripts/startBrokers.php" echo "done" # XXX sleep forever # while 1: sleep 100000000 echo "Namaste configuration complete."