Config Check and Restart

Hi. Unfortunately I am unable to implement it by myself, but I’m looking for a sidebar button, that restarts the server, if a config check passed. I found this among the integrations, but I can’t wrap my head around it.
Thanks in advance for your responses.