aboutsummaryrefslogtreecommitdiff
path: root/.app/lib
diff options
context:
space:
mode:
Diffstat (limited to '.app/lib')
-rw-r--r--.app/lib/app-operate7
-rwxr-xr-x.app/lib/pid-method2
2 files changed, 5 insertions, 4 deletions
diff --git a/.app/lib/app-operate b/.app/lib/app-operate
index d2f3a00..7789939 100644
--- a/.app/lib/app-operate
+++ b/.app/lib/app-operate
@@ -27,7 +27,7 @@ run_control() {
if [ -z "$bin" ]
then
- bin=$BASEDIR/.app/lib/pid-method
+ bin=$APPSH_HOME/.app/lib/pid-method
fi
if [ ! -x "$bin" ]
@@ -45,6 +45,7 @@ run_control() {
$e \
APPSH_METHOD=$method \
APPSH_BASEDIR=$BASEDIR \
+ APPSH_HOME=$APPSH_HOME \
APPSH_NAME=$name \
APPSH_INSTANCE=$instance \
$bin
@@ -54,10 +55,10 @@ run_control() {
case $ret in
0)
- echo "Application ${method}ed"
+ echo "Method ${method} completed successfully for $name/$instance"
;;
*)
- echo "Error ${method}ing $name/$instance"
+ echo "Error running method ${method} for $name/$instance"
;;
esac
)
diff --git a/.app/lib/pid-method b/.app/lib/pid-method
index e718849..b4a672e 100755
--- a/.app/lib/pid-method
+++ b/.app/lib/pid-method
@@ -4,7 +4,7 @@ set -e
PID_FILE=$APPSH_BASEDIR/.app/var/pid/$name-$instance.pid
-. $APPSH_BASEDIR/.app/lib/app-conf
+. $APPSH_HOME/.app/lib/app-conf
bin=`get_conf $APPSH_BASEDIR $APPSH_NAME $APPSH_INSTANCE app.bin`