The run_ wrappers now tee the server's stdout/stderr into the launching console (the window the plugin opens) in addition to the log file, and title the window per model. Closing the window kills only tee; Python raises BrokenPipeError on the dead pipe and the logging module contains it, so the server keeps running. pipefail keeps the EXIT= line reporting the launcher's exit code.
14 lines
650 B
Bash
14 lines
650 B
Bash
#!/bin/bash
|
|
# Console + log wrapper used by the OpenCode plugins.
|
|
# tee mirrors the server's output into the launching console (the WSL window
|
|
# the plugin opens) while the log file stays the durable record. Closing the
|
|
# window kills only tee and stops the log growing; Python raises
|
|
# BrokenPipeError on the dead pipe (no SIGPIPE death) and the logging module
|
|
# contains it, so the server keeps running.
|
|
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
cd /home/dfj
|
|
title "vllm: qwen3.6-uncensored" 2>/dev/null || true
|
|
set -o pipefail
|
|
bash "$DIR/launch_qwen36_unc.sh" 2>&1 | tee /home/dfj/qwen36_unc.log
|
|
echo "EXIT=$?" >> /home/dfj/qwen36_unc.log
|