Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I have been having a difficult time configuring the Minecraft server to start with Windows. Here's the situation:

I have a Windows Server 2008 hosted at GoDaddy which I use for my web development and such. It has really powerful hardware which most of the time is not utilized (Core 2 Quad @2.5Ghz, 8GB RAM, etc). I have had the server configured to restart automatically every night at 2AM just to keep it refreshed. Well, I spent hours trying different ways to configure the Minecraft server to startup after the computer boots, but I've had no luck and finally gave up. The server hasn't been restarted in like a month thanks to that...

So, I ask for any assistance on how I can configure a scheduled task that will startup the Minecraft server after boot.

share|improve this question
    
I believe every version of Windows has a "Startup" programs folder, which does just this. –  Corey Dec 9 '10 at 0:02
3  
@Corey, severs generally do not auto-login as a user. Items in the Startup folder are only executed when a user logs in with Explorer.exe as the shell. –  Zoredache Dec 9 '10 at 0:27
    
I'm working on a service based minecraft server, which works at the moment just isn't pretty. I could do with some early testers to help work out dependencies etc, I'll post an answer to this Q when it's ready for anyone else to try! –  Richard Benson Jan 20 '11 at 14:47
    
@Richard, I'd be willing to try it. Are you going to have the ability to have commands since it's a service? –  Alex Jan 20 '11 at 18:24
    
there's a web interface running inside the service, at the moment it can only start/stop and view logs, but the idea is to be able to send commands. No plans on making it a "wrapper" so it's the vanilla server experience, but may eventually support hMod et al. not sure if it's cool to put links here so email me[at]richardbenson.co.uk and I'll ping you a github link. –  Richard Benson Jan 21 '11 at 12:24
add comment

6 Answers

It generally doesn't work that great, but you can define you own services. You will need to figure out some way to make sure the service performs a save.

How To Create a User-Defined Service

From SF see these questions.

Create a schedule task that runs at boot

If all else fails, you may have to do as Corey suggests. Configure your server to auto-login as some account, and just place a shortcut in the startup group.

share|improve this answer
add comment

With os x I made a simple script that I could add that to the startup items.

I'm guessing that you could just make a shortcut to the server application and put that in your startup folder.

share|improve this answer
    
-1 this does not work see comments on the question. –  Joe the Person Aug 18 '12 at 5:00
add comment

You can make a .txt file, rename it as whatever.cmd and then change the text to

start (the address, for example C:\Desktop\....and so on)

then in the cmd file you may use any command prompt action such as start. I hope this is helpful.

share|improve this answer
add comment

Edit: This app is actually quite mature and reliable now and not really an "early release" anymore. It's still being worked on and recently added support for running multiple servers at the same time (e.g. for trialling the weekly builds).


If you are happy with the "vanilla" experience, I have (as mentioned in comments) made an application that keeps Minecraft running as a service. You can download an early release direct from GitHub which gives you Vanilla Minecraft as a service with a web-based console.

share|improve this answer
add comment

What you're looking for is a tool that can turn any arbitrary Windows process/executable into a Windows service.

There are three tools that I can recommend get the job done:

  • SrvAny: Free but requires more in-depth technical detail to setup. Not compatible with ALL apps.
  • FireDaemon: Not free but is extremely reliable and effective. Try the 30-day trial.
  • Java Service Wrapper: Free for personal use. Works for java apps.

Set your Windows service as 'Automatic' and you're done!

share|improve this answer
add comment

You could just make a batch file that starts the exe instead, have the batch shortcut in the startups folder and have it route to the minecraft_server.exe

The batch file was a workaround the issue of Windows 2008 server not allowing user login apps to start.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.