You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/09/15 15:19:20 UTC

[jira] [Commented] (MINIFI-97) Error when trying to stop already stopped MiNiFi

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

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

Github user apiri commented on the issue:

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


> 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
>          Components: C++
>    Affects Versions: cpp-0.0.1
>         Environment: CentOS 7
>            Reporter: Pierre Villard
>            Assignee: 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)