#!/bin/bash # 杀旧进程 pkill -9 -f showen_v2 2>/dev/null sleep 1 cd /home/showen/Showen/ShowenV2 export DISPLAY=:0 export RUST_LOG=info # 后台启动 nohup ./target/release/showen_v2 --config configs/live2d_anime.json > /tmp/sl2.log 2>&1 & echo "PID=$!"