{"id":17919369,"url":"https://github.com/zombiezen/health-notify","last_synced_at":"2025-07-14T03:36:01.422Z","repository":{"id":230305227,"uuid":"779057022","full_name":"zombiezen/health-notify","owner":"zombiezen","description":"Helper for systemd services to run a health check before starting dependent units","archived":false,"fork":false,"pushed_at":"2024-03-29T00:45:10.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T21:49:01.665Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zombiezen.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-03-29T00:20:15.000Z","updated_at":"2024-03-29T00:22:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"60121e4f-8437-45c8-9433-049c05775bad","html_url":"https://github.com/zombiezen/health-notify","commit_stats":null,"previous_names":["zombiezen/health-notify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zombiezen%2Fhealth-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zombiezen%2Fhealth-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zombiezen%2Fhealth-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zombiezen%2Fhealth-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zombiezen","download_url":"https://codeload.github.com/zombiezen/health-notify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246963668,"owners_count":20861528,"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":[],"created_at":"2024-10-28T20:16:20.658Z","updated_at":"2025-04-03T08:25:54.492Z","avatar_url":"https://github.com/zombiezen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# health-notify\n\n`health-notify` is a small helper program for systemd services\nthat runs a health check program periodically on startup until the check program succeeds\nand then notifies systemd using [`sd_notify`][].\nThis is useful for deploying programs that do not support [socket activation][]\nand having them behave with other services\nthat depend on the program already listening for a socket.\n\n[`sd_notify`]: https://0pointer.de/blog/projects/socket-activation.html\n[socket activation]: https://0pointer.de/blog/projects/socket-activation.html\n\n## Usage\n\nHTTP-based health check:\n\n```ini\n[Unit]\nWants=local-fs.target network-online.target\nAfter=local-fs.target network-online.target\n\n[Service]\n# Wrap your program arguments in health-notify.\n# Everything before the first semicolon are the main program arguments.\n# Everything after the first semicolon specify the health check program,\n# which should exit with status code 0 on success.\nExecStart=/usr/local/bin/health-notify /usr/local/bin/my-server --port=8080 \\; /usr/bin/curl -fsSL http://localhost:8080\n# Use Type=notify to have systemd wait until a notification\n# to mark the unit as started.\nType=notify\n\nRestart=always\n```\n\nTCP-based health check:\n\n```ini\n[Unit]\nWants=local-fs.target network-online.target\nAfter=local-fs.target network-online.target\n\n[Service]\nExecStart=/usr/local/bin/health-notify /usr/local/bin/my-server --port=8080 \\; /usr/bin/nc -z localhost 8080\nType=notify\nRestart=always\n```\n\n## License\n\n[Apache 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzombiezen%2Fhealth-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzombiezen%2Fhealth-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzombiezen%2Fhealth-notify/lists"}