summaryrefslogtreecommitdiff
path: root/.app/lib/default-method
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-10-12 23:23:10 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-10-12 23:23:10 +0200
commitcdfcae52a49118d43e2064dd228b789b8452664f (patch)
tree62ee1d5f74adf0d085e9421b7a17ab3162dfde96 /.app/lib/default-method
parent33ac32f2351b688300e656dfca3f7f6d69e56949 (diff)
downloadapp.sh-cdfcae52a49118d43e2064dd228b789b8452664f.tar.gz
app.sh-cdfcae52a49118d43e2064dd228b789b8452664f.tar.bz2
app.sh-cdfcae52a49118d43e2064dd228b789b8452664f.tar.xz
app.sh-cdfcae52a49118d43e2064dd228b789b8452664f.zip
Major refactoring. Splitting out the method groups into separate files.
Diffstat (limited to '.app/lib/default-method')
-rwxr-xr-x.app/lib/default-method37
1 files changed, 0 insertions, 37 deletions
diff --git a/.app/lib/default-method b/.app/lib/default-method
deleted file mode 100755
index e718849..0000000
--- a/.app/lib/default-method
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-set -e
-
-PID_FILE=$APPSH_BASEDIR/.app/var/pid/$name-$instance.pid
-
-. $APPSH_BASEDIR/.app/lib/app-conf
-
-bin=`get_conf $APPSH_BASEDIR $APPSH_NAME $APPSH_INSTANCE app.bin`
-
-if [ -z "$bin" ]
-then
- echo "Missing required configuration: app.bin." >&2
- exit 1
-fi
-
-if [ ! -r "$bin" ]
-then
- echo "No such file: $bin" >&2
- exit 1
-fi
-
-chmod +x "$bin"
-
-case "$APPSH_METHOD" in
- start)
- set -x
- $bin &
- ret=$?
- pid=$!
- echo "Application launched with PID=$pid"
- echo $pid > $PID_FILE
- ;;
- *)
- exit 1
- ;;
-esac