]> git.corax.cc Git - toolbox/commit
include/inst: Implement instance status messages
authorMatthias Kruk <m@m10k.eu>
Sun, 6 Jun 2021 02:03:56 +0000 (11:03 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 6 Jun 2021 02:14:26 +0000 (11:14 +0900)
commitd9ea3f1b307dad08beeff73db7f505651d2f1577
tree04d7d9ff9b89acb481904cb7b406916d4a26c6e5
parentdf97069dce689b550183704d00cee8a9e51e4054
include/inst: Implement instance status messages

In order to make the status of an instance visible to users and other
processes, functions are needed that can be used to set status messages
from within an instance.
This commit adds status messages for instances, which can be manipulated
through the following functions.

 - inst_set_status(): Set the status of the running instance
 - inst_get_status_message(): The the status message of an instance
 - inst_get_status_timestamp(): Get the timestamp of a status message
 - inst_get_status(): Get status message and timestamp of an instance
include/inst.sh