Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Apr 2004 16:53:19 -0500
From:      James Housley <jim@thehousleys.net>
To:        freebsd-hackers@freebsd.org
Subject:   Loosing STDOUT after file rotation
Message-ID:  <406C8F4F.1040306@Thehousleys.net>

next in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms000308010207000106070605
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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.

--------------ms000308010207000106070605
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJIzCC
AuwwggJVoAMCAQICAwucmTANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE
ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv
bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQwMTMxMTkxMTAwWhcNMDUwMTMwMTkxMTAw
WjBeMRAwDgYDVQQEEwdIb3VzbGV5MQ4wDAYDVQQqEwVKYW1lczEWMBQGA1UEAxMNS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SIb3DQMH
MA4GCCqGSIb3DQMCAgIAgDANBggqhkiG9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIB
KDB4BgkrBgEEAYI3EAQxazBpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29u
c3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwg
SXNzdWluZyBDQQIDC5yZMHoGCyqGSIb3DQEJEAILMWugaTBiMQswCQYDVQQGEwJaQTElMCMG
A1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBl
cnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECAwucmTANBgkqhkiG9w0BAQEFAASCAQA7Vau3
LinmGrRuazwkuSWp1MIYIJlXVol9bCvb+/1I6AJwJfs8uNUbyvDOPuGabCE8bdSP7m1J7bE2
2gMNbwJDBRhZATiK19CoRxKvcL0lbBPJfVXuqlF7Z5iQ8ww9eGrx9k3LcXSurFMQzenN7oLj
xKkhGEBQ2SFgctxYdK2TgUXb9n7EIzBNIJ7tyYy1mkaUqn6MfQj2lb947zqGqpSjWuESQA2o
BwBQiDA4Gk/By/+ktRsLqLOpfI6NqrjiRtEK/gQtpsZFFk0Jj9gLejgbAtqw8mI/TOBos2/4
8X5pVfj+hN/PMzjJJiAMiBrc7TMnCeHEafaf4v5EV1QiicQlAAAAAAAA
--------------ms000308010207000106070605--



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