{ "module": "mesh-delivery-watchman", "version": "1", "slug": "watchman", "claims": [ { "name": "mesh-watchdogs", "scope": "mesh", "serves": [ "signals", "stuck", "presence", "dead-letters", "resync" ] } ], "reads": [ "mesh-build-go.steps", "mesh-build-image.steps", "mesh-build-node.steps", "mesh-controller.lease", "mesh-delivery-assigner.wants", "node-engine.have" ], "tools": [ "watchman_findings" ], "state": [ { "name": "presence", "history": 20 }, { "name": "pulse", "key-ttl": true }, { "name": "stuck", "history": 20 }, { "name": "findings", "history": 5 } ], "own-secrets": { "broker": "${dir:state}/broker" }, "secrets-owner": "mesh-delivery-watchman", "resources": [ { "id": "account", "type": "user", "name": "mesh-delivery-watchman", "shell": "/usr/bin/nologin", "home": "/var/lib/mesh-delivery-watchman" }, { "id": "state", "type": "directory", "mode": "0700", "owner": "mesh-delivery-watchman", "place": ".", "unknown": "program" }, { "id": "socket-dir", "type": "directory", "path": "/var/lib/mesh-delivery-watchman-tools", "mode": "0755", "owner": "mesh-delivery-watchman", "unknown": "program" }, { "id": "watchman", "type": "process", "name": "mesh-delivery-watchman", "artifact": "program", "run": [ "./mesh-delivery-watchman" ], "env": { "MESH_BROKER_FILE": "${dir:state}/broker" }, "user": "mesh-delivery-watchman", "health": { "kind": "unit" } } ], "build": { "artifacts": [ { "name": "program", "kind": "bundle", "language": "go", "system": "arch", "from": "cmd/mesh-delivery-watchman", "binary": "mesh-delivery-watchman" }, { "name": "tools", "kind": "bundle", "language": "go", "system": "arch", "from": "cmd/mesh-delivery-watchman-tools", "binary": "mesh-delivery-watchman-tools", "loads": [ "mesh-delivery-watchman-tools" ] } ] } }