aboutsummaryrefslogtreecommitdiff
path: root/.app/lib/app-operate
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-10-16 23:57:41 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-10-16 23:57:41 +0200
commita3ce3f7eabbb746aa9ced430bcd55391742c738b (patch)
treee4dcab1586b725508a57bfce83f3067a95b26a89 /.app/lib/app-operate
parentf563dc165ce1ee8747eea647231bf8e295d8af3f (diff)
downloadapp.sh-a3ce3f7eabbb746aa9ced430bcd55391742c738b.tar.gz
app.sh-a3ce3f7eabbb746aa9ced430bcd55391742c738b.tar.bz2
app.sh-a3ce3f7eabbb746aa9ced430bcd55391742c738b.tar.xz
app.sh-a3ce3f7eabbb746aa9ced430bcd55391742c738b.zip
o Improved completion (again).
o Consistent usage of APPSH_HOME and BASEDIR.
Diffstat (limited to '.app/lib/app-operate')
-rw-r--r--.app/lib/app-operate7
1 files changed, 4 insertions, 3 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
)