[
https://issues.apache.org/jira/browse/MINIFI-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aldrin Piri updated MINIFI-97:
------------------------------
Component/s: C++
> 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
> 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)