Hi Dream, welcome to the forum!
Have you seen this post? https://forum.infiniteautomation.com/topic/3316/script-to-restart-mango/3
It shows how to restart Mango from within Mango, which can be done in a scripting data source. It also describes how to use the startup scripts restart mechanism.
Edit: I changed Ubutu to Ubuntu in my edits