开机场景:phserver.sh 在 refresh-xauth --wait 45 等待登录期间,PH 监控 (15 秒周期)判 sunshine 不在再次 Start 本脚本 → 双 sunshine 实例竞争端口 (后起者 47990 bind 冲突退出,存活实例 nvhttp 47984/47989 端口不完整), moonlight 无法发现主机(145 重启后实测)。锁在脚本同目录,sunshine 存活 期间(含等待)持有,重复调用 10ms 内静默退出。 Co-Authored-By: Claude <noreply@anthropic.com>