aboutsummaryrefslogtreecommitdiff
path: root/libexec/app-operate
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/app-operate')
-rwxr-xr-xlibexec/app-operate6
1 files changed, 2 insertions, 4 deletions
diff --git a/libexec/app-operate b/libexec/app-operate
index 452f658..5fa939d 100755
--- a/libexec/app-operate
+++ b/libexec/app-operate
@@ -11,15 +11,13 @@ APPSH_HOME=$(cd $(dirname "$0")/.. && pwd)
assert_is_app
method="$1"; shift
-set -x
bin=`app-conf get app.operator`
bin=${bin:-$APPSH_HOME/libexec/app-operator-pid}
if [ ! -x "$bin" ]
then
- echo "Invalid executable: $bin" >&2
- exit 1
+ fatal "Invalid executable: $bin" >&2
fi
-run_app "$bin" "$@"
+run_app "$bin" "$method" "$@"