I had a Raspberry that I used as a Mysql, web, ftp, samba, nfs, oscam,... server for my Nvidia Shield and other devices but, since I now have an S905X box, I decided to use it instead as a server for a far better experience. What I want is to stop and start Kodi with a key from my remote control, because is a waste of power having Kodi in the background when I don't use it, and I'd like to know how to do it without the need of SSH and a PC.
Stopping is easy editing the keymap with the "Quit" function but, how could I send the "systemctl start kodi" command with the remote?
Thanks in advance.