I had implemented handling of EOF in the code and it was working fine so
far, until one day I see the java process which is supposed to start every
hour is not doing so. It continues to run. There is no setting change.
Does that mean somehow logrotate is not sending EOF ?
Does httpd has some erro
I am revisiting this. As per the change suggested I modified the program so
that it returns EOF and it was working fine. Until one day, the program
which is supposed to get restarted by apache every hour (that's when log
file rotates), stopped getting restarted. It is not stuck. It is still
process
As an extension to this, if I also want to send ssl_error_log to this
program as well, is there any provision to do so ?
This is what I was doing when using manual script to launch the log
consumer.
*tail* *-n0* *-F** /var/log/httpd/error_log /var/log/httpd/ssl_error_log *
*|*
On Mon, Jan 23, 2
Thanks for prompt reply Eric.
Adding relevant code resolved, the issue of 2 processes at the beginning.
Let me wait for logrotate to kick in and see over few hours how it behaves.
On Mon, Jan 23, 2017 at 4:41 PM, Eric Covener wrote:
> On Mon, Jan 23, 2017 at 7:36 PM, Milind Vaidya wrote:
> >
On Mon, Jan 23, 2017 at 7:36 PM, Milind Vaidya wrote:
> When httpd is started it spawns 2 processes and adds one every one hour,
> keeping all alive
Your java program needs to exit when stdin returns EOF.
--
Eric Covener
cove...@gmail.com
--
>
> I am writing messages to error_log file as well as sending to std out.
>
> The setting looks like
>
>
> ErrorLog "| /usr/bin/tee -a /var/log/httpd/error_log | java -cp
> producer.jar stdin.producer.StdInProducer /CustomProducer/config.json >>
> /producer_init.log 2>&1"`
>
>
When httpd is st