Startup/Shutdown External Programs
Posted: Fri 15 Jan 2021 3:28 pm
I like the idea of the new "Program settings", and this might be thought of as a generalization of that. If available, I would take advantage of the ability to run some code when Cumulus starts, and when it shuts down.
I was reminded of this in writing out viewtopic.php?f=36&t=18885 (Option to *Append* to ServiceConsoleLog.txt). If available, at shutdown one could make a backup copy of ServiceConsoleLog.txt, or append it to file located elsewhere - an alternative approach to that proposal.
Such a feature could, potentially be used to implement an alternative to the "Host to PING on program start-up" option. I believe some caveats are:
Thanks!
I was reminded of this in writing out viewtopic.php?f=36&t=18885 (Option to *Append* to ServiceConsoleLog.txt). If available, at shutdown one could make a backup copy of ServiceConsoleLog.txt, or append it to file located elsewhere - an alternative approach to that proposal.
Such a feature could, potentially be used to implement an alternative to the "Host to PING on program start-up" option. I believe some caveats are:
- To replicate that function, the external program would have to block, i.e. Cumulus would not continue until control returns,
- It would be convenient to be able to communicate back to Cumulus the desire to halt, e.g. through a return code or the like.
Thanks!