]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
connman: Fix restart script
authorMichael Nazzareno Trimarchi <michael@amarulasolutions.com>
Sun, 10 Nov 2024 15:00:15 +0000 (16:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Nov 2024 23:45:58 +0000 (23:45 +0000)
commitb1c1b67166049181136d5eb68740f3bf98bf670d
tree6034e09df8d847df69d1018ad92b996d8d22cdb8
parent5dc22afe3d2ea767f084b7c6e3625cb6edd66522
connman: Fix restart script

The script does not work if the connman service is already stopped.
The start-stop-daemon checks for the existence of a specified process.
If such a process exists, start-stop-daemon sends it the signal specified
by --signal, and exits with error status 0.  If such  a  process  does
not exist, start-stop-daemon exits with error status 1 (0 if --oknodo is specified).
The script uses set -e so we need to add --oknodo option to stop

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/connman/connman/connman