You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Eddie Epstein <ea...@gmail.com> on 2009/10/08 15:16:48 UTC

Re: UIMA AS java.io.IOException: Bad file descriptor when started in background on unix

Hi Jörn,

Would probably need additional code in UIMA_Service: add a shutdown
hook that would do the QUIESCE_AND_STOP.

Eddie

On Thu, Oct 8, 2009 at 7:07 AM, Jörn Kottmann <ko...@gmail.com> wrote:
> Burn Lewis wrote:
>>
>> We haven't been able to reproduce it ... probably depends on the version
>> of
>> Linux (or the JVM) ... the way nohup deals with stdin appears to vary.
>> Another change was published yesterday (check if bytes available before
>> reading) but if that doesn't fix it for you we'll have to catch
>> IOExceptions
>> from System.in ... since we can't test it would you mind adding a
>> try/catch
>> and verifying?
>>
>
> Seems that it works now. Is there a way to quiesce a service
> with "q" when it is running in the background and redirecting
> its output to a file ?
>
> In my particular case its started like this:
> nohup bin/deployAsyncService.sh XXX/desc/Deploy_XXX.xml > console.out &
>
> Jörn
>

Re: UIMA AS java.io.IOException: Bad file descriptor when started in background on unix

Posted by Jörn Kottmann <ko...@gmail.com>.
Eddie Epstein wrote:
> Hi Jörn,
>
> Would probably need additional code in UIMA_Service: add a shutdown
> hook that would do the QUIESCE_AND_STOP.
>
>   
Is the shutdown hook executed when the process is killed
with kill pid ? If so we should add one.

Jörn