aboutsummaryrefslogtreecommitdiff
path: root/libexec/app-operator-pid
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-10-27 23:30:49 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-10-27 23:30:49 +0100
commite694d9024cddf4dd54efd828927e3fd5e70b6c3a (patch)
treedcefc5f39fc837736b9822b7446d2b6eb4e6f802 /libexec/app-operator-pid
parent38d7ffca0b591694c17509d20c8bf55606e60536 (diff)
downloadapp.sh-e694d9024cddf4dd54efd828927e3fd5e70b6c3a.tar.gz
app.sh-e694d9024cddf4dd54efd828927e3fd5e70b6c3a.tar.bz2
app.sh-e694d9024cddf4dd54efd828927e3fd5e70b6c3a.tar.xz
app.sh-e694d9024cddf4dd54efd828927e3fd5e70b6c3a.zip
o Removing all old code (X files).
o Making sure APPSH_HOME is 1) exported and, 2) always prepended to $PATH. o More documentation on what a zip file actually looks like and how to create hooks.
Diffstat (limited to 'libexec/app-operator-pid')
-rwxr-xr-xlibexec/app-operator-pid9
1 files changed, 4 insertions, 5 deletions
diff --git a/libexec/app-operator-pid b/libexec/app-operator-pid
index 71871de..a3781ee 100755
--- a/libexec/app-operator-pid
+++ b/libexec/app-operator-pid
@@ -3,7 +3,7 @@
set -e
set -u
-APPSH_HOME=$(cd $(dirname "$0")/.. && pwd)
+export APPSH_HOME=$(cd $(dirname "$0")/.. && pwd)
. $APPSH_HOME/lib/common
# HEADER END
@@ -80,8 +80,6 @@ find_pid_management() {
command_start() {
launcher=`find_launcher`
- set -x
- echo pwd=`pwd`
pid_management=`find_pid_management`
debug "launcher=$launcher"
@@ -95,9 +93,10 @@ command_start() {
;;
esac
+ export APPSH_HOME
echo "Starting app..."
$launcher <&- 1>&- 2>&- &
-
+
PID=$!
case "$pid_management" in
@@ -205,7 +204,7 @@ then
fatal "\$APP_HOME has to be set."
fi
-pid_file=$APP_HOME/.app/pid
+pid_file=$APP_HOME/.app/pid
PID=
if [ -r $pid_file ]