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 <arturo.buzarra@digi.com>
This commit is contained in:
Arturo Buzarra 2025-02-03 14:52:27 +01:00
parent 8c33785987
commit 521041ad93
2 changed files with 2 additions and 0 deletions

View File

@ -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]

View File

@ -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]