Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Apr 2004 08:54:15 -0500 (EST)
From:      Dan Langille <dan@langille.org>
To:        James Housley <jim@thehousleys.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Loosing STDOUT after file rotation
Message-ID:  <20040402085348.U8697@xeon.unixathome.org>
In-Reply-To: <406C8F4F.1040306@Thehousleys.net>
References:  <406C8F4F.1040306@Thehousleys.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 1 Apr 2004, James Housley wrote:

> I have a program that I have the is supposed to run forever.  I log any
> output to a log file.  It is run in a startup script like thie:
>
> program_name >> $err_log 2>&1
>
> The problem is that after newsyslog rotates the $err_log file, no more
> data is written to the file.  I can not stop and restart the program.  I
> can accept a signal.  But what do I need to do in "program_name" to allow
> the data to be written after the "rotation" of the file.

Sorry, I missed the >> above.... I thought you were writing directly.

-- 
Dan Langille - BSDCan: http://www.bsdcan.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040402085348.U8697>