Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I asked this question before, but I think I got answers that were cron job type answers.

I want the solr service to startup if I reboot my computer, and I also want it to run by itself instead of me opening up cmd.exe and running it manually, and then having to close my terminal connection (not log off as that will close it).

What options do I have?

I am on windows server 2008, IIS7 running a application that uses solr.

share|improve this question
up vote 1 down vote accepted

Creating a service:

Basically this should allow you to create a service, point it at the exe and then use services.msc to control it like a normal service. I.e. Automatic start and so on.

What command do you currently run to start solr?

share|improve this answer
java -jar start.jar using cmd.exe – Blankman Mar 27 '10 at 22:57
Put those commands in .bat file and then you might also need to convert the .bat file to an exe with this utilty: Bat2Exe – Seanchán Torpéist Mar 28 '10 at 0:20

Your Answer


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.