Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 asp.net application that uses solr.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Creating a service: http://www.tacktech.com/display.cfm?ttid=197

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 computerhope.com/dutil.htm –  Seanchán Torpéist Mar 28 '10 at 0:20

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.