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:
24
deployment/run.sh
Normal file
24
deployment/run.sh
Normal 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."
|
||||
Reference in New Issue
Block a user