lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <>
Subject [jira] [Updated] (SOLR-9508) Install script should check existence of tools, and add option to NOT start service
Date Tue, 13 Sep 2016 23:11:20 GMT


Jan Høydahl updated SOLR-9508:
    Attachment: SOLR-9508.patch

Simple patch, which applies on top of SOLR-9475. Exits if tar/unzip/service/java unavailable
and asks user to install the missing tool first.

Complains but does not exit if lsof is missing.

If switch -n is given, service is not started after install, and we do not exit if java is
not found. This allows for Solr to be installed before Java.

The java check is not more sophisticated than requiring "java" on path. We could start looking
for it elsewhere, test the one in JAVA_HOME, validate that we have Java8 etc. I can be persuaded
into skipping the java test since we do not need Java for the installer, and Solr will run
as the "solr" user, not root. Still, lack of java in path for root user is a strong indication
that it will probably not be present by default in the newly created solr user either, and
service start will fail...

> Install script should check existence of tools, and add option to NOT start service
> -----------------------------------------------------------------------------------
>                 Key: SOLR-9508
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>            Reporter: Jan Høydahl
>         Attachments: SOLR-9508.patch
> The {{}} script should exit cleanly if tools like {{tar}}, {{unzip}},
{{service}} or {{java}} are not available.
> Also, add a new switch {{-n}} to skip starting the service after installation, which
will make it easier to script installations which will want to modify {{/etc/default/}}
before starting the service.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message