summaryrefslogtreecommitdiff
path: root/test/data/my-app/root
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/my-app/root')
-rwxr-xr-xtest/data/my-app/root/bin/my-app17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/data/my-app/root/bin/my-app b/test/data/my-app/root/bin/my-app
new file mode 100755
index 0000000..2416bbf
--- /dev/null
+++ b/test/data/my-app/root/bin/my-app
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+LOGS="$APP_HOME/logs"
+
+mkdir -p "$LOGS"
+logfile=$LOGS/my-app.out
+exec >> $logfile
+exec 2>&1
+
+end=$(app conf get my-app.end)
+end=${end:-10}
+
+for i in seq 1 $end
+do
+ echo "`date`: working..."
+ sleep 1
+done