Restart Kodi without Reboot

Interesting that you can remember me. But yes this hearty interaction is always the same <3 …

As already mentioned, they just call it via sh (“systemctl restart kodi”) and I asked here how I can fire this via Yatse… (I would not have asked, if I had found something in the documentation)

Your answer like “read the documentation” was not helpful, but well, I found a solution by myself.

If someone is also interested in this, just create an empty addon and add following line in the default.py:

import os
os.system('systemctl restart kodi')

Via Yatse I used the custom commands with Addons.ExecuteAddon.
If someone is interested in more details, I can put them here as well if needed.

Thanks…

@Tolriq if you have an easier way (e.g. how to call that sh via Yatse, like the original question), I would appreciate if you can share…