]> code.ossystems Code Review - openembedded-core.git/commit
sysklogd: Fix init script races
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Jun 2019 15:41:45 +0000 (16:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Jun 2019 11:20:24 +0000 (12:20 +0100)
commitdc1fcb61f7d89cd066ace2edc143e7a2d329e033
tree4c49b7b9bff4cc5c5c9149fbb998bbdab6ba1799
parentdc73872b828ea271678fa624c15199364a5cba9e
sysklogd: Fix init script races

In testing we're seeing sysklogd fail to restart klogd since the original
process hasn't stopped before the new one is started. This means a restart
can result in no process running which is clearly not desireable.

Add extra code to ensure this works correctly. Busybox start-stop-daemon
seems particularly open to this kind of issue, the dpkg version maybe
less so if timeout options are used (which we don't use).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/sysklogd/files/sysklogd