openrc/sh
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
..
.gitignore remove /run migration script again 2018-12-23 21:04:00 -06:00
binfmt.sh.in binfmt: ensure a file is ungegistered before registering 2020-01-11 13:32:38 -06:00
cgroup-release-agent.sh.in standardize the default shell 2018-12-08 12:06:26 -06:00
functions.sh.in sh/functions.sh.in: return a different value for invalid input in yesno() 2018-11-18 13:22:59 -05:00
gendepends.sh.in add experimental support for an alternate shell for service scripts 2019-02-13 18:22:25 -06:00
init-early.sh.Linux.in make grep usage POSIX compliant 2020-01-11 12:09:10 -06:00
init.sh.BSD.in standardize the default shell 2018-12-08 12:06:26 -06:00
init.sh.GNU-kFreeBSD.in standardize the default shell 2018-12-08 12:06:26 -06:00
init.sh.GNU.in standardize the default shell 2018-12-08 12:06:26 -06:00
init.sh.Linux.in init.sh: rework the /run setup for linux xystems 2021-03-22 15:47:21 -05:00
Makefile combine test directories 2019-02-22 18:08:19 -06:00
meson.build build: change root_prefix to rootprefix 2021-09-06 14:30:30 -05:00
openrc-run.sh.in typo fix 2021-01-05 17:11:01 -06:00
rc-cgroup.sh sh/rc-cgroup.sh: fix case in starting message 2021-08-12 14:23:34 -05:00
rc-functions.sh rc-functions.sh: Remove addon support 2018-07-09 19:44:40 -05:00
rc-mount.sh rc-mount: make timeout invocation compatible with busybox timeout 2021-09-09 22:57:44 -04:00
runit.sh [runit integration] give a bit of time to start the service 2021-09-11 17:20:50 -05:00
s6.sh misc: whitespace fixes 2018-10-13 12:53:54 -04:00
start-stop-daemon.sh misc: whitespace fixes 2018-10-13 12:53:54 -04:00
supervise-daemon.sh supervise-daemon.sh: drop the unused stopsig variable 2018-12-03 12:43:12 -06:00