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

Mark Payne edited comment on NIFI-488 at 6/8/15 6:30 PM:
---------------------------------------------------------

New patch will cause NiFi to run in the background, monitoring NiFi and if NiFi 
dies will automatically restart.

This is done mostly because we want to run in the background and when anything 
is written to NiFi's StdOut or StdErr it will get logged.
With this new patch, we are also pulling logback/slf4j into the bootstrap so 
that we can configure the bootstrap's logging as well as NiFi's StdOut & StdErr.

The old approach was to just redirect NiFi's StdOut and StdErr to a file. This 
was bad because it didn't allow for rolling of the files or keeping only a 
certain amount of data.

Additionally, in the new patch I removed the start-nifi.bat and stop-nifi.bat 
and just left the run-nifi.bat. This is because when we want the bootstrap 
process to continue to run so that it can log NiFi's output/error streams, it 
can't be done in the background in a batch file. We could write a .vbs script 
that would do it, but then that would run immediately in the background without 
any indication that anything even happened. Since most projects don't offer 
anything to run in the background for batch scripts either, I thought it best 
to just remove these all together.


was (Author: markap14):
New patch will cause NiFi to run in the background, monitoring NiFi and if NiFi 
dies will automatically restart.

This is done mostly because we want to run in the background and when anything 
is written to NiFi's StdOut or StdErr it will get logged.
With this new patch, we are also pulling logback/slf4j into the bootstrap so 
that we can configure the bootstrap's logging as well as NiFi's StdOut & StdErr.

The old approach was to just redirect NiFi's StdOut and StdErr to a file. This 
was bad because it didn't allow for rolling of the files or keeping only a 
certain amount of data.

> Bootstrap not capturing output stream or error stream
> -----------------------------------------------------
>
>                 Key: NIFI-488
>                 URL: https://issues.apache.org/jira/browse/NIFI-488
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Joseph Witt
>            Assignee: Mark Payne
>             Fix For: 0.2.0
>
>         Attachments: 0001-NIFI-488-Merged-develop.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to