[ 
https://issues.apache.org/jira/browse/SOLR-7105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15865632#comment-15865632
 ] 

Jan Høydahl commented on SOLR-7105:
-----------------------------------

[~afscrome], your service install script looks promising. If you would like to 
take the lead on integrating it into the distribution, then perhaps we could 
end up with committing ans shipping it as the default Windows installer? Then, 
in turn the Chocolatey package in SOLR-5176 could call the new installer script 
with correct options instead of implementing their own service install features.

If you would like to continue on this, may I suggest this approach:

  # Create a patch {{SOLR-7105.patch}} and attach it to this issue or a Pull 
Request (see http://lucene.apache.org/solr/community.html#how-to-contribute)
  # Gather feedback and implement more features. Guess the goal should be to 
mimic the Linux install script as closely as possible (but in PS style syntax)
  # Start a documentation page in the Wiki, which would later be added to the 
RefGuide

Wrt NSSM vs Commons-Daemon, I guess commons daemon is a bit more feature rich 
than NSSM, and I kind of like the philosophy better instead of having to run 
the command a hundred times to update various registry settings... But any 
would do...

Questions:
* Should the script (optionally?) also unzip the distribution ZIP file, like 
the Linux installer? Problem is, there is no {{zip --strip-components}} on 
windows, we could document how to use {{jar xf}} though, since Java should 
already be installed. PS's {{Expand-Archive}} is not able to unzip one file only
* Check whether Java is installed? And other prerequisites?
* Where should {{solr.in.cmd}} be located by default? 
* Should Solr by default be installed to {{%ProgramFiles%}} and SOLR_HOME to 
{{%ProgramData%}}?

> Running Solr as a windows service
> ---------------------------------
>
>                 Key: SOLR-7105
>                 URL: https://issues.apache.org/jira/browse/SOLR-7105
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Varun Thacker
>             Fix For: 6.0
>
>
> Since we moved away from shipping a war, it's useful to have scripts to start 
> Solr as a service.
> In 5.0 we already added a script for unix systems, we should also add one for 
> windows.
> The Commons Daemon project seems like a good way to implement it - 
> http://commons.apache.org/proper/commons-daemon/procrun.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to