-
This is useful for one-time jobs like evaluation. Now I can only close all servers with commands like: ps aux | grep sglang | grep -v grep | awk '$8 ~ /^R/' | awk '{print $2}' | xargs -r kill -9 |
Beta Was this translation helpful? Give feedback.
Answered by
tongyx361
Nov 18, 2024
Replies: 1 comment
-
I found a workaround by closing the server as a job in a subshell: #!/usr/bin/env bash
set -eo pipefail
# Enable job control in the script
set -m # or 'set -o monitor'
# Setup the server in background
jobs
kill %1 # Now this will work
exit 0 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tongyx361
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a workaround by closing the server as a job in a subshell: