Skip to contentSkip to conversation

connman: Fix restart script

PATCH New Michael Trimarchi 1 participant 1 message Nov 10, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 meta/recipes-connectivity/connman/connman/connman | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/connman/connman/connman +1 -1
index a021fd4655..adb5d44fed 100644
@@ -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
Signature · 1 line
2.43.0