lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <j...@apache.org>
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

     [ https://issues.apache.org/jira/browse/SOLR-9508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

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: https://issues.apache.org/jira/browse/SOLR-9508
>             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 {{install_solr_service.sh}} 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/solr.in.sh}}
before starting the service.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message