Skip to content

Commit

Permalink
Tweaks to launcher script
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Apr 5, 2024
1 parent c5443ca commit 290523b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/prefix1
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ launch() {
startTime="$(date +%s%3N)"
echo "$pid" > "$pidFile"
[ -x "$javaCmd" ] || extract
(nohup "$javaCmd" -Djdk.trackAllThreads=true -Djdk.virtualThreadScheduler.parallelism=64 -Dethereal.startTime="$startTime" -Dethereal.name="$name" -Dethereal.script="$script" -Dethereal.payloadSize=$payloadSize -Dethereal.jarSize=$jarSize -Dethereal.command="$(command -v "$name")" -Dethereal.fpath="$(zsh -c 'printf "%s\n" $fpath' 2> /dev/null || echo '')" -jar "$script" > /dev/null 2> >(logger -t "$name") || abort) &
(nohup "$javaCmd" -Djdk.trackAllThreads=true -Djdk.virtualThreadScheduler.parallelism=32 -Dethereal.startTime="$startTime" -Dethereal.name="$name" -Dethereal.script="$script" -Dethereal.payloadSize=$payloadSize -Dethereal.jarSize=$jarSize -Dethereal.command="$(command -v "$name")" -Dethereal.fpath="$(zsh -c 'printf "%s\n" $fpath' 2> /dev/null || echo '')" -jar "$script" > /dev/null 2> >(logger -t "$name") || abort) &
launchPid=$!

while [[ ! -s "$portFile" ]] && [[ ! -f "$failFile" ]]
Expand Down
2 changes: 1 addition & 1 deletion etc/prefix2
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ active() {
local path
local -i pid
path="$1"
[ -s "$pidFile" ] && kill -0 $(<"$pidFile")
[ -s "$pidFile" ] && kill -0 $(<"$pidFile") 2> /dev/null
}

checkState() {
Expand Down

0 comments on commit 290523b

Please sign in to comment.