diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-11-12 13:39:41 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-11-12 13:39:41 +0100 |
commit | 5dd16e14dd41f1565687142ba7cefa7c4cf64658 (patch) | |
tree | d571b793928cdf89feb6d040b359c3db2a00c766 /test/data/my-app/root | |
parent | 0d92ff5fd34d79b54c30c38ac41bc600acf7b7c4 (diff) | |
download | appstore-5dd16e14dd41f1565687142ba7cefa7c4cf64658.tar.gz appstore-5dd16e14dd41f1565687142ba7cefa7c4cf64658.tar.bz2 appstore-5dd16e14dd41f1565687142ba7cefa7c4cf64658.tar.xz appstore-5dd16e14dd41f1565687142ba7cefa7c4cf64658.zip |
Diffstat (limited to 'test/data/my-app/root')
-rwxr-xr-x | test/data/my-app/root/bin/my-app | 17 |
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 |