From owner-freebsd-questions Thu Apr 22 9:23: 4 1999 Delivered-To: freebsd-questions@freebsd.org Received: from www.value.net (www-fr.value.net [207.33.92.8]) by hub.freebsd.org (Postfix) with ESMTP id 85E26151B6 for ; Thu, 22 Apr 1999 09:22:42 -0700 (PDT) (envelope-from rfg@monkeys.com) Received: from monkeys.com (i180.value.net [206.14.136.180]) by www.value.net (8.8.7/8.7.3) with ESMTP id JAA18179 for ; Thu, 22 Apr 1999 09:22:46 -0700 (PDT) Received: from monkeys.com (localhost [127.0.0.1]) by monkeys.com (8.9.3/8.9.3) with ESMTP id JAA29750 for ; Thu, 22 Apr 1999 09:34:22 -0700 To: questions@freebsd.org Subject: Two questions about newsyslog(8) From: "Ronald F. Guilmette" Date: Thu, 22 Apr 1999 09:34:21 -0700 Message-ID: <29748.924798861@monkeys.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a couple of system log files that would benefit from the magic performed by newsyslog(8), however I am concerned about trying to employ this program on these specific log files, because the man page for newsyslog(8) is not clear about a few important details of what this program actually does. Specifically: #1) When the current log file is being archived, is that current log file (simply renamed and then gzipped), or are its current contents copied first to `logfile.0', followed by truncation to zero length of the existing `logfile' file? (The answer to this question may perhaps make a BIG difference as to whether I can use newsyslog(8) or not on the specific log files I am concerned about. If it just tries to rename `logfile' to `logfile.0' and if the daemon process that is writing the log file is just holding `logfile' continuously open, then this may perhaps not produce the desited results.) #2) The man page for newsyslog(8) says that it will send a signal to the daemon process that is writing the log file. But when exactly will it do this? What I mean is: Does newsyslog(8) send the signal to the daemon process just after it makes a copy of (or just after it renames) the current log file? Is the assumption then that this signal should cause the daemon to close the current logfile and open a new one having the original (pre-archiving) filename? -- Ron Guilmette, Roseville, California ---------- E-Scrub Technologies, Inc. -- Deadbolt(tm) Personal E-Mail Filter demo: http://www.e-scrub.com/deadbolt/ -- FREE Web Harvester Protection - http://www.e-scrub.com/wpoison/ - Try it! -- FREE DynamicIP Spam Filtering - http://www.imrss.org/dssl/ - TELL YOUR ISP! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message