Start Server on Reboot

Discussion in 'Bukkit Help' started by dclardy, Mar 28, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    I am hosting a minecraft server with VolumeDrive. For some reason they reboot the host node of the VPS some what frequently. I would guess that it is at least once a week.

    I would like to know if anyone has a way to start the minecraft server on startup. I am running RToolkit as a wrapper, but I can't get it to start on boot.

    Any ideas?
  2. Offline


    You can set up a service start using your init.d if they use it, I wouldn't recommend it but it can be done. If you want to try it get with your service provider on how to set it up for your system.
  3. Offline


    I am using a ubuntu server, and I am doing the server management. Can you point me in the right direction?
  4. Offline


    go to the ubuntu support site and search for init.d services. Thats about the best i can do for you. Maybe some one else will know more and give you some moreinfo.
  5. Offline

    tha d0ctor

    for windowss I put a shortcut to my .bat file in my startup folder, sorry this wont help too much though :(
  6. Offline


  7. Offline


    For some reason this is not working.

    I have placed @Reboot screen -S Minecraft /opt/craftbukkit/ in the cron, but it doesn't load.

    I am adding @Reboot sleep 60s -screen -S Minecraft /opt/craftbukkit/ to see if that works.
  8. Offline


    at reboot in cron? I'd rather use /etc/conf.d/local.start for this...
  9. Offline


    I got it working by placing /opt/craftbukkit/ in /etc/rc.local.

    The issue now is that I can't run screen before it. If I do that, it doesn't load minecraft.

    Any ideas?
  10. Offline


    yep, you have to use some flags in screen to make it work:

    screen -fa -d -m -S mcs sh

    "mcs" is the name of the screen, "sh" is the command to be run in the screen
  11. Offline


    That works great. Now, I just need to get past some connection issues.
Thread Status:
Not open for further replies.

Share This Page