Ubuntu 16.04.5 Headless
So I want the server to start a screen and then start a Minecraft jar file then detach from the screen to keep it running in the background in a way that i can reattach and run commands.
I've tried using crontab "@reboot cd Desktop/goto/path && java blah -java file.jar nogui"
It doesn't seem to be working. I tried looking up scrips and rc.local and its kinda confusing me what it does and when to use it. How can i do this?