I have developed HTTP embedded server with Brook Framework. In addition to TBrookAction (offtop: actually I did not understand - its are executed in a separate thread or in one awaiting for the queue) for user interaction via HTTP I have a background/worker thread to perform some continuous and periodical actions.
This worker thread is now starting in the unit initialization section and frees (so if app is terminated by user) in finalization section. Everything works. But...
I would like to have more control over the application via SSH: [auto]start, stop, restart, maybe something else. As I understand it I need to do not just the HTTP server but a daemon HTTP server.
And then there is the question whether it is possible to keep the run worker thread in the initialization part of the unit or need the start and stop of processing inside a class instance TBrookHttpDaemon. But how do I do that then?