]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
connman: Fix restart script
authorMichael Nazzareno Trimarchi <michael@amarulasolutions.com>
Sun, 10 Nov 2024 15:00:15 +0000 (16:00 +0100)
committerSteve Sakoman <steve@sakoman.com>
Thu, 9 Jan 2025 14:01:28 +0000 (06:01 -0800)
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>
(cherry picked from commit b1c1b67166049181136d5eb68740f3bf98bf670d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-connectivity/connman/connman/connman

index a021fd465588c41cc2e2d1edca7aed583f86297f..adb5d44fed66aad130a206819573a4da7a76d94e 100644 (file)
@@ -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