Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-135

Error when trying to stop already stopped MiNiFi

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.0.1
    • 0.1.0
    • None
    • CentOS 7

    Description

      If calling

      ./minifi.sh stop
      

      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:

      if [ $(active_pid ${saved_pid}) -ne 0 ]; then
      

      by

      if [ $(active_pid ${saved_pid}) -le 0 ]; then
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            pvillard Pierre Villard
            pvillard Pierre Villard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment