Update launch.script to append to $log_file rather than overwriting it
Closes gh-4506
This commit is contained in:
parent
a86250322f
commit
2b5b7cd81e
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue