Loosing STDOUT after file rotation

From: James Housley (jim_at_thehousleys.net)
Date: 04/01/04

  • Next message: Kris Kennaway: "Re: Multi-Thread Ports Installation suggestion."
    Date: Thu, 01 Apr 2004 16:53:19 -0500
    To: freebsd-hackers@freebsd.org
    
    
    

    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.
    
    



  • Next message: Kris Kennaway: "Re: Multi-Thread Ports Installation suggestion."

    Relevant Pages

    • Loosing STDOUT after file rotation
      ... output to a log file. ... It is run in a startup script like thie: ... The foolish man built his network upon Windows. ...
      (freebsd-hackers)
    • Re: Forensic Survey, help needed for a research/training program
      ... forensics or network based forensics? ... Host based forensic questions ... system rather than shutting it down or disconnecting it from the network? ... Given a log file for an incident, what can you look for to determine ...
      (Security-Basics)
    • Forensic Survey, help needed for a research/training program
      ... forensics or network based forensics? ... Host based forensic questions ... system rather than shutting it down or disconnecting it from the network? ... Given a log file for an incident, what can you look for to determine ...
      (Security-Basics)
    • Forensic Survey, help needed for a research/training program
      ... forensics or network based forensics? ... Host based forensic questions ... system rather than shutting it down or disconnecting it from the network? ... Given a log file for an incident, what can you look for to determine ...
      (Security-Basics)
    • Re: Denied Packets from Internal Network
      ... is for the internal network as you guessed, ... network and is hardwired - IP addy. ... My concern is that someone it trying to route packets through and they are ... I recently noticed entries in my log file ...
      (comp.os.linux.security)