Commit 2b5b7cd8 authored by Michitomo Nakahara's avatar Michitomo Nakahara Committed by Andy Wilkinson

Update launch.script to append to $log_file rather than overwriting it

Closes gh-4506
parent a8625032
...@@ -157,15 +157,15 @@ do_start() { ...@@ -157,15 +157,15 @@ do_start() {
-- \ -- \
-Dsun.misc.URLClassPath.disableJarChecking=true "${JAVA_OPTS[@]}" \ -Dsun.misc.URLClassPath.disableJarChecking=true "${JAVA_OPTS[@]}" \
-jar "$jarfile" "${RUN_ARGS[@]}" "$@" \ -jar "$jarfile" "${RUN_ARGS[@]}" "$@" \
> "$log_file" 2>&1 >> "$log_file" 2>&1
await_file "$pid_file" await_file "$pid_file"
else else
su -s /bin/sh -c "$command > \"$log_file\" 2>&1 & echo \$!" "$run_user" > "$pid_file" su -s /bin/sh -c "$command >> \"$log_file\" 2>&1 & echo \$!" "$run_user" > "$pid_file"
fi fi
pid=$(cat "$pid_file") pid=$(cat "$pid_file")
else else
checkPermissions || return $? checkPermissions || return $?
$command &> "$log_file" & $command &>> "$log_file" &
pid=$! pid=$!
disown $pid disown $pid
echo "$pid" > "$pid_file" echo "$pid" > "$pid_file"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment