- Home
- Plugin
- Strumenti e capacità
- dsh-plugin-orphan
dsh-plugin-orphan
threadripper123/dsh-plugin-orphan
Run detached background processes that survive DSH shutdown, with status and log tools.
Installazione
dsh plugin --profile web add github:threadripper123/dsh-plugin-orphanREADME
DSH 独立后台进程插件
让模型启动在 DSH 关闭后继续运行的 Windows 后台进程。使用 WMI 服务创建独立运行器,不依赖 detached/unref 逃离宿主 Job。
工具:orphan_start(程序绝对路径、参数数组、工作目录、名称)、orphan_list、orphan_status、orphan_logs、orphan_stop。所有任务以唯一 ID 持久保存到用户 .dsh/orphan-processes(DSH_HOME 设置时使用该目录)。stdout/stderr 分别写入文件,退出码保留供重启后查询。
只允许主会话调用,按当前用户权限执行,不自动提权。启动由操作系统 WMI 提供,可能处于非交互会话,适合服务器、脚本、下载、后台计算;不保证交互桌面窗口。exe+参数直接启动,需 shell 时明确指定 powershell.exe 或 cmd.exe。
进程不设自动超时,DSH退出也不自动清理。用 orphan_stop 显式停止;停止前持有运行器进程句柄并核验 PID、创建时间与路径,停止当前可发现的子树。若运行器被外部程序强杀,目标仍可能存活,此时显示 orphaned,插件拒绝仅凭旧 PID 强行停止。机器关机/注销和程序自身退出仍可能结束进程;本插件不创建开机自启或后台服务。启动结果不确定时先查询任务 ID/list,避免重复启动。日志默认持续追加,请为长期任务自行安排日志轮转。
安装后完全退出并重开 DSH,工具才能加载。本机安装目录在 desktop profile/plugin-orphan,源码保留在工作区 dsh-orphan-plugin。
Plugin correlati
archify (deepseek-harness)
tt-a1i/archify
WeKnora (dsh-weknora)
tencent/weknora
next-ai-draw-io (dsh-plugin)
dayuanjiang/next-ai-draw-io
weknora
tencent/weknora