Ok, firt my apologies if this is in the wrong spot. I seriosuly didn't know where to stick this. In any event, I have a game server I'd like to have started on server reboot and I got the baic idea of what I need to do using an @reboot cronjob but I'm having an issue with the .sh file involved.
Below is the contents of the .sh file involved, I don't have the cron set up yet to get it goin after server restart. I'm currently testing it running the following command.
Ok, so here's what's wrong... the screen loads or whatever you wana call it but then that's it. Nothing, so I close the screen out and then I see the other stuff run (the mono stuff).
# McMyAdmin / Minecraft Server Autostart Script
# Called via Cron (@reboot /home/user/minecraft_autostart.sh)
screen -S minecraft
mono McMyAdmin.exe -nostart
Well, someone suggested I add a screen -X, well I tried that and still nothing. If your still with me and sort of get what I'm trying to achieve here then I would really appreciate the help. It was also suggested I not CD the path but instead use a full path, didnt quite follow them on that one but the below quote is the last thing I got from my host before coming here as they sort of hinted towards.
If you run the script manually it will use your tty. If you want the next two commands sent to the screen you will have to use screen -X option. You should also just use the full path to eliminate the need for a cd command. We really can't tell you much more as you are now running into scripting issues. Please consult the appropriate forums for assistance.