Files
namaste/deployment/run.sh
gramps 373ebc8c93 Archive: Namaste PHP AMQP framework v1.0 (2017-2020)
952 days continuous production uptime, 40k+ tp/s single node.
Original corpo Bitbucket history not included — clean archive commit.
2026-04-05 09:49:30 -07:00

25 lines
822 B
Bash

#!/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."