> For the complete documentation index, see [llms.txt](https://doc.i4e.com.bd/networking/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.i4e.com.bd/networking/doc/global-wait.md).

# Wait for configuration und functions

[◀ Go back to main README](/networking/master.md)

## Description

The global scripts `global-config`, `global-config-overlay` and `global-functions` are run by scheduler at system startup. Running another script at system startup may result in race condition where configuration and/or function are not yet available. This script is supposed to wait for everything being prepared.

Do **not** add this script `global-wait` to the `global-scripts` scheduler! It would inhibit the initialization of configuration and functions.

## Requirements and installation

Just install the script:

```
$ScriptInstallUpdate global-wait;
```

... and add it to your scheduler, for example in combination with [bridge-port](/networking/doc/bridge-port.md):

```
/ system scheduler add name=bridge-port-to-default on-event="/ system script { run global-wait; run bridge-port-to-default; }" start-time=startup;
```

## See also

* [Manage ports in bridge](/networking/doc/bridge-port.md)
* [Download packages for CAP upgrade from CAPsMAN](/networking/doc/capsman-download-packages.md)
* [Renew certificates and notify on expiration](/networking/doc/check-certificates.md)
* [Use wireless network with daily psk](/networking/doc/daily-psk.md)

[◀ Go back to main README](/networking/master.md)\
[▲ Go back to top](/networking/doc/global-wait.md#top)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.i4e.com.bd/networking/doc/global-wait.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
