yezitotempeace/dsh-tmp-cleaner ↗★ 0
dsh-tmp-cleaner
启动时确保 /tmp 清理守护进程运行(含进程内看门狗与兜底清理),并提供设置页与 /tmp-clean/api 接口 适合需要自动监控、按周期或大小清理临时目录以释放磁盘空间的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yezitotempeace/dsh-tmp-cleanerREADME
Read the full README ↗配置
/root/.tmp-clean/config.json(命令行与设置页共用):
| 字段 | 默认 | 说明 |
|---|---|---|
enabled | true | 是否启用自动清理 |
interval_hours | 24 | 清理周期(小时) |
max_size_gb | 20 | 超过该占用就清 |
target_size_gb | 10 | 清到该占用为止 |
min_age_hours | 2 | 只删这么旧的目录 |
poll_minutes | 15 | 守护进程轮询间隔 |
dry_run | false | 演练模式(不真删) |