mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
95c97fef3b
commit
cacd35c35a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user