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.
This commit is contained in:
2026-04-05 09:49:30 -07:00
commit 373ebc8c93
1284 changed files with 409372 additions and 0 deletions

24
deployment/run.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/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."