diff options
Diffstat (limited to '.app/lib/default-method')
-rwxr-xr-x | .app/lib/default-method | 37 |
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 |