summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Nazzareno Trimarchi <michael@amarulasolutions.com>2024-11-10 16:00:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-12 23:54:35 +0000
commitcacd35c35ad8ea21995a7a4243ce33a3758c3976 (patch)
tree21c012da90e824fe59256e4c60bd47a793f59946
parent95c97fef3b717b44d7d49fbf3039f55a7ed6baf8 (diff)
downloadpoky-cacd35c35ad8ea21995a7a4243ce33a3758c3976.tar.gz
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 (From OE-Core rev: b1c1b67166049181136d5eb68740f3bf98bf670d) Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-connectivity/connman/connman/connman2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/connman/connman/connman b/meta/recipes-connectivity/connman/connman/connman
index a021fd4655..adb5d44fed 100644
--- a/meta/recipes-connectivity/connman/connman/connman
+++ b/meta/recipes-connectivity/connman/connman/connman
@@ -18,7 +18,7 @@ do_start() {
18} 18}
19 19
20do_stop() { 20do_stop() {
21 start-stop-daemon --stop --name connmand --quiet 21 start-stop-daemon --stop --oknodo --name connmand --quiet
22} 22}
23 23
24case "$1" in 24case "$1" in