From 5dd16e14dd41f1565687142ba7cefa7c4cf64658 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 12 Nov 2013 13:39:41 +0100 Subject: wip --- test/data/my-app/root/bin/my-app | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 test/data/my-app/root/bin/my-app (limited to 'test/data/my-app/root/bin/my-app') 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 -- cgit v1.2.3