yezitotempeace/dsh-tmp-cleaner ↗★ 0

dsh-tmp-cleaner

启动时确保 /tmp 清理守护进程运行(含进程内看门狗与兜底清理),并提供设置页与 /tmp-clean/api 接口 适合需要自动监控、按周期或大小清理临时目录以释放磁盘空间的用户。

Package
dsh-tmp-cleaner
Compatibility
Unverified
Version
0.2.1
License
MIT
Last updated
Oct 18, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yezitotempeace/dsh-tmp-cleaner

配置

/root/.tmp-clean/config.json(命令行与设置页共用):

字段默认说明
enabledtrue是否启用自动清理
interval_hours24清理周期(小时)
max_size_gb20超过该占用就清
target_size_gb10清到该占用为止
min_age_hours2只删这么旧的目录
poll_minutes15守护进程轮询间隔
dry_runfalse演练模式(不真删)