{"id":19235718,"url":"https://github.com/seaung/watcher","last_synced_at":"2025-06-25T09:05:59.442Z","repository":{"id":125673132,"uuid":"522976467","full_name":"seaung/watcher","owner":"seaung","description":"Watcher 是一个用C++开发的轻量级进程监控守护工具，用于监控指定进程的运行状态，当目标进程不存在时会自动重启。","archived":false,"fork":false,"pushed_at":"2025-02-18T05:41:21.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T06:32:09.444Z","etag":null,"topics":["c11","cpp","watch"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seaung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-09T14:08:35.000Z","updated_at":"2025-02-18T05:46:03.000Z","dependencies_parsed_at":"2023-04-18T02:26:49.901Z","dependency_job_id":null,"html_url":"https://github.com/seaung/watcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seaung/watcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaung%2Fwatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaung%2Fwatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaung%2Fwatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaung%2Fwatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seaung","download_url":"https://codeload.github.com/seaung/watcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaung%2Fwatcher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261841950,"owners_count":23217912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c11","cpp","watch"],"created_at":"2024-11-09T16:17:59.222Z","updated_at":"2025-06-25T09:05:59.413Z","avatar_url":"https://github.com/seaung.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Watcher 进程监控工具\n\n## 项目简介\n\nWatcher 是一个用C++开发的轻量级进程监控守护工具，用于监控指定进程的运行状态，当目标进程不存在时会自动重启。\n\n## 主要特性\n\n- 支持守护进程模式运行\n- 自动监控目标进程状态\n- 进程异常退出自动重启\n- 支持日志记录功能\n- 支持命令行参数配置\n\n## 编译安装\n\n### 环境要求\n\n- C++ 编译器（支持C++11标准）\n- Make 工具\n\n### 编译步骤\n\n1. 克隆代码到本地\n2. 进入项目目录\n3. 执行编译命令：\n\n```bash\n# 默认编译（优化模式）\nmake\n\n# 调试模式编译\nmake DEBUG=1\n\n# 清理编译文件\nmake clean\n```\n\n编译完成后，可执行文件将生成在 `bin` 目录下。\n\n## 使用说明\n\n### 命令行参数\n\n```bash\nUsage: watcher [p:n:vh] [par]\n\n参数说明：\n  --path, -p     指定要监控的程序路径\n  --name, -n     指定要监控的程序名称\n  --version, -v  显示版本信息\n  --help, -h     显示帮助信息\n```\n\n### 使用示例\n\n```bash\n# 监控指定程序\n./bin/watcher --path \"/path/to/your/program\" --name \"program_name\"\n\n# 显示版本信息\n./bin/watcher --version\n\n# 显示帮助信息\n./bin/watcher --help\n```\n\n### 日志\n\n- 日志文件位置：项目目录下的 `log/watcher.log`\n- 日志包含时间戳、进程ID、日志级别等信息\n- 日志文件大小超过10MB时会自动清空\n\n## 版本信息\n\n当前版本：1.0.0\n\n\n---\nthat's all","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseaung%2Fwatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseaung%2Fwatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseaung%2Fwatcher/lists"}