[OpenWrt-Devel] Wait on syslog-ng
val.kulkov at gmail.com
Fri Sep 27 11:24:04 EDT 2019
On Fri, 27 Sep 2019 at 07:05, W. Michael Petullo <mike at flyn.org> wrote:
> Does the init system provide a more general way to solve this problem?
> The START=n statements seem to impose only the ordering of init script
> execution and have no bearing on whether the services the scripts run
> are ready. Do I have this right?
> I did see sleep in a few other scripts such as network.
ubus provides "wait_for" command that, as the name suggests, may be
useful in exactly the kind of situation you are describing here.
Unfortunately, it is not documented properly. The only description for
this command is: "wait for multiple objects to appear on ubus". See
I could not figure out how to use this command from a quick look at
the source code and postponed that research until I have some spare
time. If someone knows in which situations and how "ubus wait_for"
should be used, please comment. Thank you.
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel