In my log I noticed a series of messages indicating the agent associated with my device has restarted several times overnight, while the device was powered off. The message is a result of a server.log(“agent started”) call at the beginning of my agent code.
If the agent restarted, it means it also has stopped running several times, although this is obviously not logged. I wonder what is behind this repeated stopping/restarting of the agent. Is this normal behaviour and expected to happen during normal operation, also while the device is powered on?
Here’s a snippet from my log:
Mon May 13 2013 19:06:20 GMT+0800 (China Standard Time): Power state: online=>offline
Tue May 14 2013 03:08:01 GMT+0800 (China Standard Time): agent started
Tue May 14 2013 05:16:39 GMT+0800 (China Standard Time): agent started
Tue May 14 2013 05:17:33 GMT+0800 (China Standard Time): agent started
Tue May 14 2013 05:18:33 GMT+0800 (China Standard Time): agent started
Tue May 14 2013 05:19:48 GMT+0800 (China Standard Time): agent started
Tue May 14 2013 05:20:28 GMT+0800 (China Standard Time): agent started
Tue May 14 2013 05:24:10 GMT+0800 (China Standard Time): agent started