Jiří Pejchal created SOLR-9769:
----------------------------------

             Summary: solr stop on a service already stopped should return exit 
code 0
                 Key: SOLR-9769
                 URL: https://issues.apache.org/jira/browse/SOLR-9769
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: scripts and tools
    Affects Versions: 6.3
            Reporter: Jiří Pejchal


According to the LSB specification
https://refspecs.linuxfoundation.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic.html#INISCRPTACT
 running stop on a service already stopped or not running should be considered 
successful and return code should be 0 (zero).

Solr currently returns exit code 1:
{code}
$ /etc/init.d/solr stop; echo $?
Sending stop command to Solr running on port 8983 ... waiting up to 180 seconds 
to allow Jetty process 4277 to stop gracefully.
0
$ /etc/init.d/solr stop; echo $?
No process found for Solr node running on port 8983
1
{code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to