这是一个使用Go语言编写的守护进程
This is a daemon program written in Golang.
这个守护进程可以包裹住任意一个进程,当进程结束时,守护进程可以输出最近几条日志,并将这些日志发送到指定的邮箱中。
This daemon can wrap any process, and when the process ends, the daemon can output the last few logs and send them to the specified mailbox.
这个守护进程特别适用于通知一个长时间的训练任务完成,并直接看到训练结果。
This daemon is particularly useful for notifying a long training task of completion and seeing the results directly.
-
邮箱
- 添加邮箱
mydaemon email add --from xxx@example.com --pwd SMTP_password --to yyy@example.com
- 列出邮箱
mydaemon email ls
- 移除邮箱
然后会进入到cli,根据提示操作即可。
mydaemon email rm
- 添加邮箱
-
配置
使用
mydaemon config可修改配置,在后面添加如下参数以及值可以修改对应的配置- 缓存大小:
--buffer - 日志文件名:
--log - 邮件发送人名:
--from - 邮件主题:
--subject
- 缓存大小:
-
启动进程
mydaemon run <command> [args, ...] 例如 mydaemon run python main.py
- 时间:2026/3/21
- 功能:
- 支持单邮箱配置
- 支持程序主要功能(守护进程,记录日志并发送邮件)
- 时间:2026/4/15
- 功能:
- 支持多邮箱配置
- 支持配置缓存长度、日志名等
- 时间:2026/5/8
- 功能:
- 支持Windows下的实时输出