diff options
author | Michael Nazzareno Trimarchi <michael@amarulasolutions.com> | 2024-11-10 16:00:15 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-01-13 05:49:08 -0800 |
commit | f7169136671458a98690a7eb3328aa743f02d19e (patch) | |
tree | c617dac4f3ca3d6b7349c4300fe4379a664493b4 | |
parent | e7964cf80f1421e2e774dc9e93560f01a9f3bd8f (diff) | |
download | poky-f7169136671458a98690a7eb3328aa743f02d19e.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: f32ab69b4caef5ac2f61bb53102d8b08b94d54d5)
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>
-rw-r--r-- | meta/recipes-connectivity/connman/connman/connman | 2 |
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 | ||
20 | do_stop() { | 20 | do_stop() { |
21 | start-stop-daemon --stop --name connmand --quiet | 21 | start-stop-daemon --stop --oknodo --name connmand --quiet |
22 | } | 22 | } |
23 | 23 | ||
24 | case "$1" in | 24 | case "$1" in |