One of my masternodes got stuck and I messed everything up and lost my place. o well

So, how do you restart a masternode automatically?
You can use cron to do this.
When logged in under your user account, type:
crontab -e
You may be prompted for which text editor to use. Select your preference.
At the end of the file, enter:
@reboot /home/ubuntu/kore/src/kored -daemon -reindex >/dev/null 2>&1
Save and close the file.
To check your entry, you can type:
crontab -l
To test it, reboot your server with:
sudo reboot
When it comes back online, check to see that the masternode is running.
ps ax | grep kored
You should see /home/ubuntu/kore/src/kored -daemon -reindex in the list of running processes.
To further check it, run:
kored-cli getinfo
kored-cli masternode debug
kored-cli masternode status
If you know a better way please advise.
Cheers