Method for managing the restarting of an automation device, said automation device comprising: - a main electrical power supply, - a volatile memory containing data and an application program for controlling and/or monitoring a process to be automated, - at least one first non-volatile memory (Flash 1) containing a backup of a version of the application program and of a signature, called first signature, associated with the mapping of the data of this application program in the volatile memory, of a signature, called third signature, representing a creation index of the application program stored in the first non-volatile memory (Flash 1), of a signature, called fifth signature, representative of the deletion of variables in the application program stored in the first non-volatile memory (Flash 1), said method consisting in: - backing up, on an outage of the main electrical power supply, in a second non-volatile memory (Flash 2) of the automation device, the data and a signature, called second signature (LID'), associated with the mapping of the data, in the volatile memory, of the application program which is running at the time of the outage, a signature, called fourth signature (CID'), representing a creation index of the application program which was loaded in the volatile memory at time of the outage, a signature, called sixth signature (DID'), representative of the deletion of the variables in the application program which was loaded in the volatile memory at the time of the outage, - after the main electrical power supply has been restored, reloading the application program into the volatile memory from the first non-volatile memory (Flash 1), - deciding, by comparing signatures, on a hot restart of the automation device, in which the processing of the application program resumes at the start with the data backed up at the time of the outage of the main electrical power supply, which data is reloaded into volatile memory, or on a cold restart of the automation device, in which the processing of the application program resumes at the start with the data that is initialized, and: - if the first signature and the second signature (LID') are different, the restart takes place cold, - if the third signature and the fourth signature (CID') are different, the restart takes place cold, - if the fifth signature and the sixth signature (DID') are different, the restart takes place cold. - a main electrical power supply, - a volatile memory containing data and an application program for controlling and/or monitoring a process to be automated, - at least one first non-volatile memory (Flash 1) containing a backup of a version of the application program and of a signature, called first signature, associated with the mapping of the data of this application program in the volatile memory, of a signature, called third signature, representing a creation index of the application program stored in the first non-volatile memory (Flash 1), of a signature, called fifth signature, representative of the deletion of variables in the application program stored in the first non-volatile memory (Flash 1), - backing up, on an outage of the main electrical power supply, in a second non-volatile memory (Flash 2) of the automation device, the data and a signature, called second signature (LID'), associated with the mapping of the data, in the volatile memory, of the application program which is running at the time of the outage, a signature, called fourth signature (CID'), representing a creation index of the application program which was loaded in the volatile memory at time of the outage, a signature, called sixth signature (DID'), representative of the deletion of the variables in the application program which was loaded in the volatile memory at the time of the outage, - after the main electrical power supply has been restored, reloading the application program into the volatile memory from the first non-volatile memory (Flash 1), - deciding, by comparing signatures, on a hot restart of the automation device, in which the processing of the application program resumes at the start with the data backed up at the time of the outage of the main electrical power supply, which data is reloaded into volatile memory, or on a cold restart of the automation device, in which the processing of the application program resumes at the start with the data that is initialized, and: - if the first signature and the second signature (LID') are different, the restart takes place cold, - if the third signature and the fourth signature (CID') are different, the restart takes place cold, - if the fifth signature and the sixth signature (DID') are different, the restart takes place cold.