This is a little helper macro, which looks at a critical result and shuts the TaskHandler down, if an error occurred. This is mostly used if the state cannot. be written due to IO errors. Those errors are considered unrecoverable and we should initiate a graceful shutdown immediately.
The main entry point for the daemon logic.
It’s basically the
main, but publicly exported as a library.
That way we can properly do integration testing for the daemon.