You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joey Frazee (Jira)" <ji...@apache.org> on 2021/02/16 21:30:00 UTC

[jira] [Created] (NIFI-8229) Add support for --wait-for-init to nifi.sh restart

Joey Frazee created NIFI-8229:
---------------------------------

             Summary: Add support for --wait-for-init to nifi.sh restart
                 Key: NIFI-8229
                 URL: https://issues.apache.org/jira/browse/NIFI-8229
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework
    Affects Versions: 1.13.0
            Reporter: Joey Frazee


Copying from https://github.com/apache/nifi/pull/4814#issuecomment-776138163

--wait-for-init doesn't apply to nifi.sh restart because the $@ isn't provided to the start. The naive change would be this:

{code}
restart)
    init                                                                                           
    shift
    run "stop"             
    run "start" "$@"
    ;;
{code}

I'm not 100% sure whether that's correct though because in run() there's some use of $1 and the shift changes $@. Should we change this now, or do it later?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)