I am planning to move my garden-watering-app to HE.
The app consists of 6 cycles turning a tap on and off resp. (a Gardena-device switches to another hose / garden-sector when water-pressure goes to 0) Currently, the app has to be restartable because of spontaneous reboots of the current server. To realize that, after each state-change the app saves a state-code in a reboot-proof location. After a reboot, in the server-startup-file the actual state is read back from the reboot-proof location and the app is started again (correction for time is done when the server was gone for too long a period).
For HE I learned that the reboot-proof location is a construction named 'state'.
Always, at startup the actual state has to be read back and - if not in final state - the app has to be started again. What I don't know yet is: what file and/or app-code is executed by HE at startup?
A HE-startup file ?
Some special app-procedure ? installed() ?
Thanks in advance.