# wait: Wait until the node answers a ping

Source: https://zotonic.com/docs/3043/wait-wait-until-the-node-answers-a-ping

URI: https://zotonic.com/id/3043

Language: en

Wait until the node answers a ping.

Syntax
------

```text
bin/zotonic wait [timeout_seconds]
```

Requirements and effects
------------------------

Connects to the selected node and polls zotonic:ping/0; the default timeout is 30 seconds.

Pass an integer timeout in seconds. A successful ping does not mean every site is ready. The current timeout path prints a message and calls halt without an explicit failure status, so do not treat shell success alone as a reliable readiness condition. Check site state and an HTTP response separately.

Example
-------

```sh
bin/zotonic wait 30
```

Run commands from the Zotonic workspace root. Replace `garden` with your site name where applicable.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/3043?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/3043?language=en>)
