I'm using a nightly build of LE 10 but this also happened with the official Beta 2. When I try to do a reboot or power off, maybe 4 out of 5 times the Kodi service restarts itself instead of rebooting/powering off. This is the output of tail -f .kodi/temp/kodi.log:
Code
2021-05-08 19:34:22.861 T:1366 DEBUG <CAddonSettings[script.skinshortcuts]>: trying to load setting definitions from old format...
2021-05-08 19:34:22.862 T:1366 INFO <general>: CPythonInvoker(19, /storage/.kodi/addons/script.skinshortcuts/default.py): script successfully run
2021-05-08 19:34:22.862 T:1366 DEBUG <general>: onExecutionDone(19, /storage/.kodi/addons/script.skinshortcuts/default.py)
2021-05-08 19:34:22.868 T:1369 DEBUG <general>: Thread Timer start, auto delete: false
2021-05-08 19:34:22.879 T:1369 DEBUG <general>: Thread Timer 2723115680 terminating
2021-05-08 19:34:22.879 T:1370 DEBUG <general>: Thread Timer start, auto delete: false
2021-05-08 19:34:23.067 T:1297 DEBUG <general>: PushCecKeypress - received key d8 duration 262
2021-05-08 19:34:23.294 T:1366 INFO <general>: Python interpreter stopped
2021-05-08 19:34:23.294 T:1366 DEBUG <general>: Thread LanguageInvoker 2765079200 terminating
2021-05-08 19:34:23.383 T:1370 DEBUG <general>: Thread Timer 2723115680 terminating
2021-05-08 19:35:11.457 T:1377 DEBUG <CWebserver[8080]>: request received for /jsonrpc
2021-05-08 19:35:21.477 T:1380 INFO <CWebserver[8080]>: Skipped 17 duplicate messages..
2021-05-08 19:35:21.477 T:1380 DEBUG <CWebserver[8080]>: request received for /jsonrpc
2021-05-08 19:35:21.501 T:1258 INFO <general>: Skipped 1 duplicate messages..
2021-05-08 19:35:21.501 T:1258 INFO <general>: Saving exitCode 66
Display More
There's always a Saving exitCode 66 when this happens.
Also, here's a paste of the complete log with all components logging enabled.