[ 
https://issues.apache.org/jira/browse/NIFI-14458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Phil Dicke updated NIFI-14458:
------------------------------
    Attachment: install_service_exe.bat

> Cannot use nifi.cmd to start nifi process in the foreground
> -----------------------------------------------------------
>
>                 Key: NIFI-14458
>                 URL: https://issues.apache.org/jira/browse/NIFI-14458
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>    Affects Versions: 2.3.0
>         Environment: Windows 10, java 21
>            Reporter: Phil Dicke
>            Priority: Minor
>         Attachments: install_service_exe.bat
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The current nifi.cmd script, cannot be used to start nifi in the foreground.  
> The script checks for the "start" command and launches the process in the 
> background.
> While this is convenient for using a typical shell user, it does not work for 
> integrating the Apache ProcRun ( 
> [https://commons.apache.org/proper/commons-daemon/procrun.html] ) and running 
> the application as a Windows Service using exe mode.
> Obviously, I can just copy and edit nifi.cmd to start the processes in the 
> foreground, but I would prefer a more elegant solution.
> I'm proposing that I add a new command "startfg" to the nifi.cmd that will 
> start the nifi process in the foreground.  I'd like to get some feedback 
> before I implement this.  Is there a better option?
> [~exceptionfactory] 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to