Running a script on resume

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:

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