{"id":22148554,"url":"https://github.com/hongquan/wait-server","last_synced_at":"2025-03-24T12:42:38.430Z","repository":{"id":146039195,"uuid":"175156842","full_name":"hongquan/wait-server","owner":"hongquan","description":"Tool to wait for a server to be online","archived":false,"fork":false,"pushed_at":"2019-03-18T17:37:39.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T17:44:55.008Z","etag":null,"topics":["made-in-vietnam","process-scheduling","systemd-service"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hongquan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-12T07:23:33.000Z","updated_at":"2020-04-09T16:28:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"eab9cb96-47be-4d5d-8bbc-bd0bc35112a6","html_url":"https://github.com/hongquan/wait-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hongquan%2Fwait-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hongquan%2Fwait-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hongquan%2Fwait-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hongquan%2Fwait-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hongquan","download_url":"https://codeload.github.com/hongquan/wait-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245274519,"owners_count":20588801,"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":["made-in-vietnam","process-scheduling","systemd-service"],"created_at":"2024-12-01T23:28:24.516Z","updated_at":"2025-03-24T12:42:38.406Z","avatar_url":"https://github.com/hongquan.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wait-server\n\nTool (as Bash script) to wait for a server to be online (connectable), in a certain duration.\n\n## Usage\n\n```\nwait-server 8000\n```\n\nis to wait for a server at port 8000, on localhost to be online. After 5 seconds, the program will exit with error.\n\nFull options:\n\n```\nwait-server [[HOST] PORT] [-t \u003ctimeout\u003e][-q][-h]\n```\n\nwhere:\n\n- `HOST`: Host name or IP address of server. Default is localhost.\n- `PORT`: Port where the server is listening. Default is 8000.\n- `t`: Timeout. Default is 5s.\n- `q`: Quiet, don't show progress dots.\n\n\nMain purpose of this tool, is to be used in a _systemd_ service, to delay the service until some server is online. For example, you have `service-a` and `service-b`, in which `service-a` is a server software that takes long time to initialize (often Java application), and `service-b` should be run only after `service-a` is ready. You can write the _systemd_ service file like this:\n\n\n```ini\n[Unit]\nAfter=service-a.service\n\n[Service]\nExecStartPre=/usr/bin/wait-server\nExecStart=/usr/bin/application-b\n```\n\nThe mainpage documentation is to be generated by [pandoc](http://pandoc.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhongquan%2Fwait-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhongquan%2Fwait-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhongquan%2Fwait-server/lists"}