In an ideal environment the automation engineer or system integrator has complete control over the restart of the PC / Server(s) on which the process is running. However, this is not always the case, whether it is through a forced Windows Update or a control issued from the IT department, the automation server may be at the mercy of actions that are out of their control.
A controlled shutdown means a shutdown that is triggered when the Server is stopped, and then waits for the process to exit gracefully.
Uncontrolled restart or shutdown of an automation server can lead to data loss or corruption.
Datalog files (especially large files) can be corrupted because the Agent Server process is killed, in other words, not through a controlled shutdown.
Configuration files (such as WGP) can corrupt because the Server is configured to “save on shutdown”, and cannot complete the save action before the process is killed.
Safeguard your system
- Ensure that “save on shutdown” is turned off for both the SmartUI Server and the Agent Server.
- Increase the period that Windows waits for a process to exit, before it is killed. (more info further down in this article)
- Invest in a UPS that will signal a power failure and ensure that a graceful shutdown can complete. A power failure can often result in corrupt files.
- Backup your configuration by using the built-in backup functionality. If a backup is normally done to a removeable device, ensure that the device is safely removeable before disconnecting the device.
These steps will ensure that there is a much lower risk of data corruption in the event of a system restart or shutdown.