How to have rust server start on pc boot

I have a rust server hosted on my extra linux pc. It runs Ubuntu Server and I am wondering how to have it run its start script apon boot.

u could use services and just enable one to start after boot. or simply use tools made for running servers that do this already :P pterodactyl being a panel and not sure about lgsm

Just add it to your crontab:

@reboot /path/to/your/startscript​