summaryrefslogtreecommitdiffstats
path: root/lenovo/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lenovo/run.sh')
-rwxr-xr-xlenovo/run.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/lenovo/run.sh b/lenovo/run.sh
index e5da37c3..45d109f7 100755
--- a/lenovo/run.sh
+++ b/lenovo/run.sh
@@ -17,7 +17,12 @@ memcached -d -m 2048 -u root -c 1024 -p 11211 -P /tmp/memcached1.pid
export PYTHONPATH=lib/share
#nohup python manage.py runserver 0.0.0.0:9010 2>&1 &
-nohup uwsgi --http :9010 --module thinkcloud.wsgi --master --processes 4 &
+#nohup uwsgi --http :9010 --module thinkcloud.wsgi --master --processes 4 &
+if [ ${SSL_ENABLED} = "true" ]; then
+ nohup uwsgi --https :9010,thinkcloud/pub/ssl/cert/cert.crt,thinkcloud/pub/ssl/cert/cert.key,HIGH -t 120 --module thinkcloud.wsgi --master --processes 4 &
+else
+ nohup uwsgi --http :9010 -t 120 --module thinkcloud.wsgi --master --processes 4 &
+fi
logDir="/var/log/onap/multicloud/openstack/lenovo"
if [ ! -x $logDir ]; then
@@ -27,4 +32,4 @@ while [ ! -f $logDir/thinkcloud.log ]; do
sleep 1
done
-tail -F $logDir/thinkcloud.log \ No newline at end of file
+tail -F $logDir/thinkcloud.log