From: Michael Nazzareno Trimarchi Date: Sun, 10 Nov 2024 15:00:15 +0000 (+0100) Subject: connman: Fix restart script X-Git-Tag: yocto-5.2~1370 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1c1b67166049181136d5eb68740f3bf98bf670d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-connectivity/connman/connman/connman b/meta/recipes-connectivity/connman/connman/connman index a021fd46558..adb5d44fed6 100644 --- a/meta/recipes-connectivity/connman/connman/connman +++ b/meta/recipes-connectivity/connman/connman/connman @@ -18,7 +18,7 @@ do_start() { } do_stop() { - start-stop-daemon --stop --name connmand --quiet + start-stop-daemon --stop --oknodo --name connmand --quiet } case "$1" in