You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/12/02 17:58:12 UTC

[jira] [Commented] (SOLR-6653) bin/solr start script should return error code >0 when something fails

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

ASF subversion and git services commented on SOLR-6653:
-------------------------------------------------------

Commit 1642952 from [~thelabdude] in branch 'dev/trunk'
[ https://svn.apache.org/r1642952 ]

SOLR-6653: should return error code >0 when something fails

> bin/solr start script should return error code >0 when something fails
> ----------------------------------------------------------------------
>
>                 Key: SOLR-6653
>                 URL: https://issues.apache.org/jira/browse/SOLR-6653
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 4.10.1
>            Reporter: Jan Høydahl
>            Assignee: Timothy Potter
>              Labels: bin/solr
>
> In order to be able to include {{bin/solr}} in scripts, it should be possible to test the return value for success or failure. Examples:
> {noformat}
> jan:solr janhoy$ bin/solr start
> Waiting to see Solr listening on port 8983 [/]  
> Started Solr server on port 8983 (pid=47354). Happy searching!
> jan:solr janhoy$ echo $?
> 0
> jan:solr janhoy$ bin/solr start
> Solr already running on port 8983 (pid: 47354)!
> Please use the 'restart' command if you want to restart this node.
> jan:solr janhoy$ echo $?
> 0
> {noformat}
> The last command should return status 1
> {noformat}
> jan:solr janhoy$ bin/solr stop -p 1234
> No process found for Solr node running on port 1234
> jan:solr janhoy$ echo $?
> 0
> {noformat}
> Same here. Probably other places too.



--
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