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.
This commit is contained in:
1 parent
8aee2669e5
commit
57b52df17f
4 files changed
+36
-4
No files matched your search
@@ -1,5 +1,13 @@
|
|||||||
#!/bin/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)
|
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
cd /home/dfj
|
cd /home/dfj
|
||||||
bash "$DIR/launch_agents_a1.sh" > /home/dfj/agents_a1.log 2>&1
|
title "vllm: agents-a1" 2>/dev/null || true
|
||||||
|
set -o pipefail
|
||||||
|
bash "$DIR/launch_agents_a1.sh" 2>&1 | tee /home/dfj/agents_a1.log
|
||||||
echo "EXIT=$?" >> /home/dfj/agents_a1.log
|
echo "EXIT=$?" >> /home/dfj/agents_a1.log
|
||||||
@@ -1,5 +1,13 @@
|
|||||||
#!/bin/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)
|
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
cd /home/dfj
|
cd /home/dfj
|
||||||
bash "$DIR/launch_fast_unsloth.sh" > /home/dfj/fast_unsloth.log 2>&1
|
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
|
echo "EXIT=$?" >> /home/dfj/fast_unsloth.log
|
||||||
@@ -1,5 +1,13 @@
|
|||||||
#!/bin/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)
|
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
cd /home/dfj
|
cd /home/dfj
|
||||||
bash "$DIR/launch_qwen36_unc.sh" > /home/dfj/qwen36_unc.log 2>&1
|
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
|
echo "EXIT=$?" >> /home/dfj/qwen36_unc.log
|
||||||
@@ -1,5 +1,13 @@
|
|||||||
#!/bin/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)
|
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
cd /home/dfj
|
cd /home/dfj
|
||||||
bash "$DIR/launch_inner.sh" > /home/dfj/uncensored.log 2>&1
|
title "vllm: qwen3.8-uncensored" 2>/dev/null || true
|
||||||
|
set -o pipefail
|
||||||
|
bash "$DIR/launch_inner.sh" 2>&1 | tee /home/dfj/uncensored.log
|
||||||
echo "EXIT=$?" >> /home/dfj/uncensored.log
|
echo "EXIT=$?" >> /home/dfj/uncensored.log
|
||||||
Reference in new issue
Block a user