From 521041ad939ffc07b902e21949d6c9005547ec8d Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Mon, 3 Feb 2025 14:52:27 +0100 Subject: [PATCH] connectcore-demo-server: add delay after start demo server service Since the ConnectCore demo server forks execution to start the demo server Python script, it may not be fully initialized when the ConnectCore demo example initializes the UI and attempts to retrieve information from the server daemon. This commit introduces a delay to ensure the server is ready before another service, such as the ConnectCore demo example, interacts with it. Signed-off-by: Arturo Buzarra --- .../ccmp25/connectcore-demo-server.service | 1 + .../connectcore-demo-example/connectcore-demo-server.service | 1 + 2 files changed, 2 insertions(+) diff --git a/meta-digi-dey/recipes-digi/dey-examples/connectcore-demo-example/ccmp25/connectcore-demo-server.service b/meta-digi-dey/recipes-digi/dey-examples/connectcore-demo-example/ccmp25/connectcore-demo-server.service index 165508aa7..632fcf48c 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/connectcore-demo-example/ccmp25/connectcore-demo-server.service +++ b/meta-digi-dey/recipes-digi/dey-examples/connectcore-demo-example/ccmp25/connectcore-demo-server.service @@ -5,6 +5,7 @@ After=busybox-httpd.service bluetooth.service cyw55512-bluetooth.service [Service] Type=forking ExecStart=/etc/connectcore-demo-server start +ExecStartPost=/bin/sleep 1 ExecStop=/etc/connectcore-demo-server stop [Install] diff --git a/meta-digi-dey/recipes-digi/dey-examples/connectcore-demo-example/connectcore-demo-server.service b/meta-digi-dey/recipes-digi/dey-examples/connectcore-demo-example/connectcore-demo-server.service index 251e9bf1d..879c1eb41 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/connectcore-demo-example/connectcore-demo-server.service +++ b/meta-digi-dey/recipes-digi/dey-examples/connectcore-demo-example/connectcore-demo-server.service @@ -5,6 +5,7 @@ After=busybox-httpd.service bluetooth.service [Service] Type=forking ExecStart=/etc/connectcore-demo-server start +ExecStartPost=/bin/sleep 1 ExecStop=/etc/connectcore-demo-server stop [Install]