summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-04-27 00:35:07 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-04-27 00:35:07 +0200
commit83484d336f4b98833401edc0f119939a60b7bcad (patch)
treeced480b4e039f27a777f6667a796ef823028ef64 /bin
parent73876d8741ef2309eed74065c8b87811eb52f89e (diff)
downloaddeployment-83484d336f4b98833401edc0f119939a60b7bcad.tar.gz
deployment-83484d336f4b98833401edc0f119939a60b7bcad.tar.bz2
deployment-83484d336f4b98833401edc0f119939a60b7bcad.zip
landing via uwsgi
Diffstat (limited to 'bin')
-rwxr-xr-xbin/taler-deployment-landing12
-rwxr-xr-xbin/taler-deployment-stop11
2 files changed, 23 insertions, 0 deletions
diff --git a/bin/taler-deployment-landing b/bin/taler-deployment-landing
new file mode 100755
index 0000000..599aa37
--- /dev/null
+++ b/bin/taler-deployment-landing
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# serve landing page via uwsgi
+
+base=$HOME
+
+export PATH="$base/deployment":$PATH
+
+ulimit -c $((100 * 1024))
+
+mkdir -p $HOME/sockets
+exec uwsgi --check-static $HOME/landing --socket $HOME/sockets/landing.uwsgi
diff --git a/bin/taler-deployment-stop b/bin/taler-deployment-stop
new file mode 100755
index 0000000..cfaa3b3
--- /dev/null
+++ b/bin/taler-deployment-stop
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+base=$HOME
+
+export PATH="$base/deployment":$PATH
+
+ulimit -c $((100 * 1024))
+
+cd $HOME
+
+taler-deployment-arm -e -T 1s &>/dev/null