{"id":21585993,"url":"https://github.com/magiclen/wait-service","last_synced_at":"2025-10-26T00:17:45.455Z","repository":{"id":57671827,"uuid":"420741245","full_name":"magiclen/wait-service","owner":"magiclen","description":"Wait Service is a pure rust program to test and wait on the availability of multiple services.","archived":false,"fork":false,"pushed_at":"2025-10-16T07:17:13.000Z","size":30,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-17T09:15:54.485Z","etag":null,"topics":["cli","rust","tcp","uds","unix","wait-for-it"],"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/magiclen.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-10-24T16:50:31.000Z","updated_at":"2025-10-16T07:17:11.000Z","dependencies_parsed_at":"2025-04-10T20:15:08.302Z","dependency_job_id":"9b33f735-661e-40a0-97a6-fac77b74d355","html_url":"https://github.com/magiclen/wait-service","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/magiclen/wait-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fwait-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fwait-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fwait-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fwait-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclen","download_url":"https://codeload.github.com/magiclen/wait-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fwait-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281040719,"owners_count":26434033,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","rust","tcp","uds","unix","wait-for-it"],"created_at":"2024-11-24T15:12:20.689Z","updated_at":"2025-10-26T00:17:45.412Z","avatar_url":"https://github.com/magiclen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Wait Service\n====================\n\n[![CI](https://github.com/magiclen/wait-service/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/wait-service/actions/workflows/ci.yml)\n\nWait Service is a pure rust program to test and wait on the availability of multiple services.\n\n## Help\n\n```\nEXAMPLES:\nwait-service --tcp localhost:27017 --tcp localhost:27018   -t 5 -- npm start   # Wait for localhost:27017 and localhost:27018 (max 5 seconds) and then run `npm start`\nwait-service --tcp localhost:27017 --uds /var/run/app.sock -t 0 -- npm start   # Wait for localhost:27017 and /var/run/app.sock (forever) and then run `npm start`\nwait-service --uds /var/run/app.sock --json /path/to/json       -- npm start   # Wait for /var/run/app.sock and other services defined in the json file (max 60 seconds) and then run `npm start`\n\nUsage: wait-service [OPTIONS] -- \u003cCOMMAND\u003e...\n\nArguments:\n  \u003cCOMMAND\u003e...  Command to execute after service is available\n\nOptions:\n  -t, --timeout \u003cTIMEOUT\u003e  Set the timeout in seconds, zero for no timeout [default: 60]\n      --tcp \u003cTCP\u003e...       Test and wait on the availability of TCP services\n      --uds \u003cUDS\u003e...       Test and wait on the availability of UDS services [aliases: unix]\n      --json \u003cJSON\u003e...     Test and wait on the availability of TCP or UDS services\n  -h, --help               Print help\n  -V, --version            Print version\n```\n\n## The Config File\n\nWith the `--json` option, you can input one or more JSON files to import your TCP / UDS services. The content of each file needs to be a JSON array of objects.\n\nFor a TCP service, the object format is\n\n```json\n{\n    \"host\": \"example.com\",\n    \"port\": 443\n}\n```\n\nFor a UDS service, the object format is\n\n```json\n{\n    \"uds\": \"/path/to/socket_file\"\n}\n```\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fwait-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclen%2Fwait-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fwait-service/lists"}