Reboot system every 10 minutes

#1

Hi everyone,

I stopped the salt-minion service to customize the code, but Autopi is restarting every 10 minutes, could you help me with this problem?

#2

Hi @Marianne_Diniz,

Welcome to the community.

What you see is the intended power scenario of the device. The device contains a low level chip, which resets the device in case of an emergency in the OS. The functionality is simple. A heartbeat is send from the OS to the chip and if the chip does not receive the heartbeat, then the power is killed and the OS is rebooted.
If you want to add your own code, then you need to maintain that heartbeat in order for the device to stay awake.
The code is located here:

Look for heartbeat_handler.

The default timeout is 10 mins.

Best
Peter

Definitive answer on the OS question and several frustrations
#3

Hi Peter,

Where is this file? Is it located in autopi file system? I was not able to find it.

#4

All the code is located right here:

/var/cache/salt/

best
Peter