{"id":17595204,"url":"https://github.com/dcasella/watchd","last_synced_at":"2025-03-29T19:41:56.051Z","repository":{"id":74791499,"uuid":"167231886","full_name":"dcasella/watchd","owner":"dcasella","description":"A fearlessly concurrent filesystem watcher daemon","archived":false,"fork":false,"pushed_at":"2022-06-07T10:04:43.000Z","size":122,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T02:51:25.731Z","etag":null,"topics":["filesystem","notify","watcher"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcasella.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2019-01-23T18:21:06.000Z","updated_at":"2022-06-07T08:38:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"16967d68-88ea-4098-b810-7bc302c6bdd0","html_url":"https://github.com/dcasella/watchd","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcasella%2Fwatchd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcasella%2Fwatchd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcasella%2Fwatchd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcasella%2Fwatchd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcasella","download_url":"https://codeload.github.com/dcasella/watchd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246237418,"owners_count":20745348,"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":["filesystem","notify","watcher"],"created_at":"2024-10-22T07:43:52.970Z","updated_at":"2025-03-29T19:41:56.012Z","avatar_url":"https://github.com/dcasella.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# watchd\n\nA fearlessly concurrent filesystem watcher daemon.  \nWatch for file or directory changes (content, permissions) and execute commands.\n\n## Build\n\nInstall a Rust toolchain with Cargo.  \n[rustup](https://rustup.rs/) may help with that.\n\n### Build on Debian\n\nInstall `cargo-deb` and use the Makefile:\n\n```\ncargo install cargo-deb\nmake deb\n```\n\nThe `.deb` file will be in the `./releases` directory.\n\n### Build on RHEL\n\nInstall `cargo-rpm` and use the Makefile:\n\n```\ncargo install cargo-rpm\nmake rpm\n```\n\nThe `.rpm` file will be in the `./releases` directory.\n\n## Install\n\n### Install on Debian\n\n[Build](#build-on-debian) it first, then:\n\n```\ndpkg -i ./releases/watchd....deb\n```\n\n### Install on RHEL\n\n[Build](#build-on-rhel) it first, then:\n\n```\nrpm -i ./releases/watchd....rpm\n```\n\n## Configuration\n\nThe default configuration does a decent job at explaining things; this is just a Markdownification of it.\n\n- Default [`config.toml`](package/etc/config.toml).\n- Example [`config.toml`](examples/config.toml).\n\n### Global\n\n#### `log-file`\n\nDuplicate stdout logs to the specified file.\n\n**Default:** None\n\n**Example:**\n\n```toml\nlog-file = \"/var/log/watchd.log\"\n```\n\n#### `dry-run`\n\nLog commands without executing.\n\n**Default:** `false`\n\n**Example:**\n\n```toml\ndry-run = true\n```\n\n#### `init`\n\nExecute commands on program start.\n\n**Default:** `false`\n\n**Example:**\n\n```toml\ninit = true\n```\n\n#### `verbose`\n\nIncrement log verbosity.\n\n**Default:** `false`\n\n**Example:**\n\n```toml\nverbose = true\n```\n\n#### `entry` sections\n\nFile or directory to watch.  \nMultiple entries allowed.\n\n##### `path`\n\nPath to watch.\n\n- String\n- Required\n- Must be a valid filesystem path\n\n##### `recursive`\n\nWatch `path` and its subdirectories.\n\n- Boolean\n- Default: `false`\n\n##### `delay`\n\nTime between the last received event and the command to execute.\n\n- Float64\n- Default: `0.0`\n- Must be non-negative\n\n##### `exclude`\n\nList of patterns to ignore.  \nSyntax: [`docs.rs`](https://docs.rs/regex/1.1.0/regex/#syntax).\n\n- []String\n- Default: `[]`\n- Must be valid regular expressions\n- Backslashes must be escaped\n\n##### `command`\n\n- []String\n- Required\n- Commands are executed via `$(sh -c \"${command}\")`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcasella%2Fwatchd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcasella%2Fwatchd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcasella%2Fwatchd/lists"}