So I want to achieve the following. When I turn off my TV, I want Kodi to stop. So basically a headless Pi 4.
I normally boot up kodi with SSH: sudo systemctl start mediacenter. When I set the exit setting when TV goes off in CEC, I can see that Kodi shuts down by using the top command in SSH. But after a few seconds it starts kodi.bin again. Is there a way to disable that?
The only line with ‘exited with’ is this one: echo "Kodi exited with return code $CODE after $hours hours, $minutes minutes and $seconds seconds"
Disabling that line does not do anything. I guess this goes over my head. Tried disabling some other lines, but that did not work either.
But basically the ‘Exit’ option within Kodi should not be named exit, because it does not really exit kodi, but it makes a restart. So that option is confusing. Maybe we could have an option somewhere so the user can choose that exit is really exiting Kodi.