Aaditya Bagga 6e24d33517 [runit integration] give a bit of time to start the service
Currently, we run sv start immediately after linking the service.
The runsv process may not be up at the moment, as a result of which
openrc will mark the service as stopped, even though it may be brought up
by runit at the next scan.

This is documented in the gentoo wiki:
https://wiki.gentoo.org/wiki/Runit#OpenRC.27s_runit_integration_feature

This PR adds a timeout so that correct process state can be reported.

Before:
 * Starting netdata-runit ...
fail: /run/openrc/sv/netdata: runsv not running
 * Failed to start netdata-runit

After:
 * Starting netdata-runit ...
fail: /run/openrc/sv/netdata: runsv not running
ok: run: /run/openrc/sv/netdata: (pid 9042) 0s

This fixes #253.
2021-09-11 17:20:50 -05:00
..
2018-12-23 21:04:00 -06:00
2018-12-08 12:06:26 -06:00
2018-12-08 12:06:26 -06:00
2019-02-22 18:08:19 -06:00
2021-01-05 17:11:01 -06:00
2018-10-13 12:53:54 -04:00
2018-10-13 12:53:54 -04:00