diff options
Diffstat (limited to 'test/data/my-app')
-rw-r--r-- | test/data/my-app/app.config | 1 | ||||
-rwxr-xr-x | test/data/my-app/root/bin/my-app | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/data/my-app/app.config b/test/data/my-app/app.config new file mode 100644 index 0000000..5980d80 --- /dev/null +++ b/test/data/my-app/app.config @@ -0,0 +1 @@ +my-app.awesome=true 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 |