CoreELEC and kodi with scripts help



HI all

There was a poster on CoreELEC that he wanted to exit kodi and reload it when he came out of suspend meaning a refresh of the system if you are using a shared data base to remember the place left of and what was watched Here is the script

Cooked up a small systemd service to automatically restart the Kodi service on resume from sleep. In case anyone needs it:

CoreELEC-BDR:~ # cat /storage/.config/system.d/onresume.service
[Unit]
Description=Restart Kodi after resume
After=suspend.target

[Service]
Type=simple
ExecStart=/bin/systemctl –no-block restart kodi.service
# ExecStart=/usr/bin/systemctl –no-block restart kodi.service

[Install]
WantedBy=suspend.target
CoreELEC-BDR:~ # systemctl enable onresume.service;systemctl start onresume.service

I am not sure where to put this script to make it run and what to copy and paste as the top and bottom line where in blue or even what to call the file. Can anyone help

Thanks