bitbake: command: Add ping command

Add a simple ping command so the UI can check the server is still there.

(Bitbake rev: fd3359de0b9f18fac187a629df203be0b2c87545)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2022-12-19 16:08:42 +00:00
parent 35c7fbab7f
commit 26f255da09

View File

@@ -166,6 +166,12 @@ class CommandsSync:
These must not influence any running synchronous command.
"""
def ping(self, command, params):
"""
Allow a UI to check the server is still alive
"""
return "Still alive!"
def stateShutdown(self, command, params):
"""
Trigger cooker 'shutdown' mode