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[@]}" \
|
||||
-jar "$jarfile" "${RUN_ARGS[@]}" "$@" \
|
||||
> "$log_file" 2>&1
|
||||
>> "$log_file" 2>&1
|
||||
await_file "$pid_file"
|
||||
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
|
||||
pid=$(cat "$pid_file")
|
||||
else
|
||||
checkPermissions || return $?
|
||||
$command &> "$log_file" &
|
||||
$command &>> "$log_file" &
|
||||
pid=$!
|
||||
disown $pid
|
||||
echo "$pid" > "$pid_file"
|
||||
|
|
Loading…
Reference in New Issue