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

ASF GitHub Bot commented on MINIFI-97:
--------------------------------------

GitHub user pvillard31 opened a pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/10

    MINIFI-97 minifi.sh stop fix

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pvillard31/nifi-minifi-cpp MINIFI-97-stop

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi-minifi-cpp/pull/10.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #10
    
----
commit 93a6f761a19f2675d3130d175f0ba1f7baf00cab
Author: Pierre Villard <pierre.villard...@gmail.com>
Date:   2016-08-29T22:12:46Z

    MINIFI-97 minifi.sh stop fix

----


> Error when trying to stop already stopped MiNiFi
> ------------------------------------------------
>
>                 Key: MINIFI-97
>                 URL: https://issues.apache.org/jira/browse/MINIFI-97
>             Project: Apache NiFi MiNiFi
>          Issue Type: Bug
>    Affects Versions: cpp-0.0.1
>         Environment: CentOS 7
>            Reporter: Pierre Villard
>            Priority: Minor
>
> If calling
> {noformat}
> ./minifi.sh stop
> {noformat}
> when MiNiFi is already stopped, the process will kill PID -1. When connected 
> to the host by SSH, I get disconnected from the host.
> I'd suggest replacing:
> {noformat}
> if [ $(active_pid ${saved_pid}) -ne 0 ]; then
> {noformat}
> by
> {noformat}
> if [ $(active_pid ${saved_pid}) -le 0 ]; then
> {noformat}



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

Reply via email to