This ends the current alarm row, setting stop-time to the time the alarm ended. The slow-controls system starts up. The slow-controls system shuts down. End all watches and alarms with end-code 1. The database shuts down.
All data is stored to disk as it is entered by use of auto-commits.
The database starts up. Tables are read from disk. An analyzer figures out what happened at some time in the past. Same for watches. Obviously, all problems are not predictable, but here are a few, and what one can do about them later.