Skip to content

Is there a way to accurately close a server running in background like vllm.LLM? #2079

Closed Answered by tongyx361
tongyx361 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tongyx361
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant