Files
opencode-vllm-autostart/launchers/run_fast_unsloth.sh
T
dfj 57b52df17f Mirror server output into the WSL console window
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.
2026-11-11 18:30:24 +01:00

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.8-fast" 2>/dev/null || true
set -o pipefail
bash "$DIR/launch_fast_unsloth.sh" 2>&1 | tee /home/dfj/fast_unsloth.log
echo "EXIT=$?" >> /home/dfj/fast_unsloth.log