From 8b1d11508e985cc2cd97a1d70d01574e78109569 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 9 Oct 2012 18:49:27 +0200 Subject: o Reworked app starting. --- .app/lib/default-method | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .app/lib/default-method (limited to '.app/lib/default-method') diff --git a/.app/lib/default-method b/.app/lib/default-method new file mode 100644 index 0000000..2313f61 --- /dev/null +++ b/.app/lib/default-method @@ -0,0 +1,19 @@ +#!/bin/bash + +PID_FILE=$APPSH_BASEDIR/.app/var/pid/$name-$instance.pid + +. ./app-conf + +bin=`get_conf $APPSH_BASEDIR $APPSH_NAME $APPSH_INSTANCE app.bin` + +case "$APPSH_METHOD" in + start) + set -x + $bin & + ret=$? + echo $! > $PID_FILE + ;; + *) + exit 1 + ;; +esac -- cgit v1.2.3