From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 2 04:13:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2926516A4CE for ; Fri, 2 Apr 2004 04:13:55 -0800 (PST) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06AEC43D45 for ; Fri, 2 Apr 2004 04:13:55 -0800 (PST) (envelope-from jim@thehousleys.net) Received: from thehousleys.net ([24.34.30.131]) by comcast.net (rwcrmhc12) with ESMTP id <2004040212135401400s7buue>; Fri, 2 Apr 2004 12:13:54 +0000 Received: from localhost (localhost [127.0.0.1]) by thehousleys.net (8.12.9p2/8.12.9) with ESMTP id i32CDr26001541 for ; Fri, 2 Apr 2004 07:13:53 -0500 (EST) (envelope-from jim@thehousleys.net) Received: from thehousleys.net ([127.0.0.1]) by localhost (cat.int.thehousleys.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01444-01-6 for ; Fri, 2 Apr 2004 07:13:50 -0500 (EST) Received: from Thehousleys.net (baby.int.thehousleys.net [192.168.0.100]) (authenticated bits=0) by thehousleys.net (8.12.9p2/8.12.9) with ESMTP id i32C9Hm8001381 for ; Fri, 2 Apr 2004 07:09:17 -0500 (EST) (envelope-from jim@Thehousleys.net) Message-ID: <406D57EC.9080908@Thehousleys.net> Date: Fri, 02 Apr 2004 07:09:16 -0500 From: James Housley User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at thehousleys.net Subject: Loosing STDOUT after file rotation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 12:13:55 -0000 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. Thanks, Jim -- /"\ ASCII Ribbon Campaign . \ / - NO HTML/RTF in e-mail . X - NO Word docs in e-mail . / \ ----------------------------------------------------------------- jeh@FreeBSD.org http://www.FreeBSD.org The Power to Serve jim@TheHousleys.Net http://www.TheHousleys.net --------------------------------------------------------------------- The wise man built his network upon Un*x. The foolish man built his network upon Windows.