# 使用 Homebrew, MacPorts 安装 dwatch

查看 dwatch 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:dwatch
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dwatch
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dwatch
```

  证据: MacPorts ports tree: sysutils/dwatch/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:dwatch
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dwatch>
- **版本:** 0.1.1
- **来源摘要:** Watch programs and perform actions based on a configuration file
- **主页:** <https://siag.nu/dwatch/>
- **上游文档:** <https://siag.nu/dwatch/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://siag.nu/pub/dwatch/dwatch-0.1.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dwatch (cli)
- dwatch (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.1.1
- 本地数据: OK
- 上游仓库: https://siag.nu/dwatch/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Dwatch, short for Daemon Watch, is a small Unix monitoring tool by Ulric Eriksson. Its official page says it watches other programs and performs actions from conditions in a configuration file, and that it is meant to be run periodically from cron.

### 项目历史

The official changelog records Dwatch's creation on 2001-08-20 to keep Pen, another Siag project, running on siag.nu, with release 0.1.0 published at the same time. The project page is deliberately old-school Unix: make, make install, a sample dwatch.conf, and notes that Linux and Solaris were known to work.

### 采用历史

Public adoption evidence is thin. The official page links a source download and an external SUSE RPM, while the batch input lists Homebrew and MacPorts formulae, suggesting survival mostly as a niche packaged Unix utility rather than a widely discussed monitoring system.

### 使用方式

The sample configuration shows directive, argument, and command columns, including examples that restart Pen when a process or TCP check is not satisfied. The intended workflow is to let cron invoke dwatch regularly, with dwatch deciding whether to run recovery commands.

### 为什么软件包爱好者会关心

Dwatch is package-nerd interesting mostly as a fossil of early-2000s Unix service babysitting: a tiny cron-friendly daemon watcher from the same ecosystem as Pen and Siag Office, before modern supervisors and service managers became the default answer.

### 时间线

- 2001: Dwatch created to keep Pen running on siag.nu; release 0.1.0 published.
- 2001: Official page dated August 2001 documents Linux and Solaris support.
- 2026: Batch input lists Homebrew and MacPorts packaging.

### Related projects

- The official page ties Dwatch directly to Pen, using Pen as the example service to restart. In package-manager terms it sits near cron, watchdog scripts, service supervisors, and small Unix monitoring tools.

### 来源

- <https://siag.nu/dwatch>
- <https://siag.nu/dwatch/ChangeLog>
- <https://siag.nu/dwatch/dwatch.conf>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dwatch
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- MacPorts - dwatch: normalized package name match | MacPorts ports tree: sysutils/dwatch/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [collectd](https://pkg.so/zh-hans/brew/collectd/) - Shares pkgdb curated category or tags: cli, daemon, monitoring, system.
- [pv](https://pkg.so/zh-hans/brew/pv/) - Shares pkgdb curated category or tags: cli, monitoring, system.
- [mactop](https://pkg.so/zh-hans/brew/mactop/) - Shares pkgdb curated category or tags: cli, monitoring, system.
- [duf](https://pkg.so/zh-hans/brew/duf/) - Shares pkgdb curated category or tags: cli, monitoring, system.
- [node_exporter](https://pkg.so/zh-hans/brew/node-exporter/) - Shares pkgdb curated category or tags: cli, monitoring, system.
- [netdata](https://pkg.so/zh-hans/brew/netdata/) - Shares pkgdb curated category or tags: cli, monitoring, system.
- [ctop](https://pkg.so/zh-hans/brew/ctop/) - Shares pkgdb curated category or tags: cli, monitoring, system.
- [asitop](https://pkg.so/zh-hans/brew/asitop/) - Shares pkgdb curated category or tags: cli, monitoring, system.
- [bpftop](https://pkg.so/zh-hans/brew/bpftop/) - Local package facts share a topical domain. Shared terms: cli, monitoring, programs, system.
- [direvent](https://pkg.so/zh-hans/brew/direvent/) - Local package facts share a topical domain. Shared terms: cli, daemon, file, monitoring, system.

## Combined YAML source

View the package source record on GitHub. [combined/dwatch.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dwatch.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
