zsh-users
 help / color / mirror / code / Atom feed
From: Duncan Sinclair <sinclair@dis.strath.ac.uk>
To: zsh-users@math.gatech.edu
Subject: Re: rolling over high-traffic logfiles?
Date: Thu, 16 Jul 1998 14:45:20 +0100	[thread overview]
Message-ID: <15546.900596720@dis.strath.ac.uk> (raw)
In-Reply-To: <19980715234957.51065@astaroth.nit.gwu.edu>


>	is there some easy way to roll over high-traffic logfiles
>in zsh, without losing any possible incoming data?

As it is a syslog log file there is a standard way to do this:

  mv /var/adm/extlog /var/adm/extlog.`date`
  cp /dev/null /var/adm/extlog
  kill -HUP `cat /etc/syslog.pid`

syslogd will continue writing to the old log file until the
kill signal is sent to it.

Nothing is ever lost - as long as syslog is behaving itself!

Hope this helps.



Duncan Sinclair.

From zsh-workers-request@math.gatech.edu Thu Jul 16 14:07:47 1998
Return-Path: <zsh-workers-request@math.gatech.edu>
Delivered-To: mason-zsh@primenet.com.au
Received: (qmail 13065 invoked from network); 16 Jul 1998 14:07:46 -0000
Received: from math.gatech.edu (root@130.207.146.50)
  by ns1.primenet.com.au with SMTP; 16 Jul 1998 14:07:46 -0000
Received: (from list@localhost)
	by math.gatech.edu (8.9.1/8.9.1) id JAA17764;
	Thu, 16 Jul 1998 09:53:44 -0400 (EDT)
Resent-Date: Thu, 16 Jul 1998 09:43:30 -0400 (EDT)
To: zsh-users@math.gatech.edu
Subject: Re: rolling over high-traffic logfiles?
Newsgroups: dis.lists.zsh
References: <19980715234957.51065@astaroth.nit.gwu.edu>
Reply-To: sinclair@dis.strath.ac.uk
Date: Thu, 16 Jul 1998 14:45:20 +0100
Message-ID: <15546.900596720@dis.strath.ac.uk>
From: Duncan Sinclair <sinclair@dis.strath.ac.uk>
Resent-Message-ID: <"ikc1-1.0.RI4.2EWhr"@math>
Resent-From: zsh-users@math.gatech.edu
X-Mailing-List: <zsh-users@math.gatech.edu> archive/latest/1678
X-Loop: zsh-users@math.gatech.edu
X-Loop: zsh-workers@math.gatech.edu
Precedence: list
Resent-Sender: zsh-workers-request@math.gatech.edu


>	is there some easy way to roll over high-traffic logfiles
>in zsh, without losing any possible incoming data?

As it is a syslog log file there is a standard way to do this:

  mv /var/adm/extlog /var/adm/extlog.`date`
  cp /dev/null /var/adm/extlog
  kill -HUP `cat /etc/syslog.pid`

syslogd will continue writing to the old log file until the
kill signal is sent to it.

Nothing is ever lost - as long as syslog is behaving itself!

Hope this helps.



Duncan Sinclair.

From zsh-workers-request@math.gatech.edu Thu Jul 16 14:12:59 1998
Return-Path: <zsh-workers-request@math.gatech.edu>
Delivered-To: mason-zsh@primenet.com.au
Received: (qmail 13119 invoked from network); 16 Jul 1998 14:12:58 -0000
Received: from math.gatech.edu (root@130.207.146.50)
  by ns1.primenet.com.au with SMTP; 16 Jul 1998 14:12:58 -0000
Received: (from list@localhost)
	by math.gatech.edu (8.9.1/8.9.1) id JAA17764;
	Thu, 16 Jul 1998 09:53:44 -0400 (EDT)
Resent-Date: Thu, 16 Jul 1998 09:43:30 -0400 (EDT)
To: zsh-users@math.gatech.edu
Subject: Re: rolling over high-traffic logfiles?
Newsgroups: dis.lists.zsh
References: <19980715234957.51065@astaroth.nit.gwu.edu>
Reply-To: sinclair@dis.strath.ac.uk
Date: Thu, 16 Jul 1998 14:45:20 +0100
Message-ID: <15546.900596720@dis.strath.ac.uk>
From: Duncan Sinclair <sinclair@dis.strath.ac.uk>
Resent-Message-ID: <"ikc1-1.0.RI4.2EWhr"@math>
Resent-From: zsh-users@math.gatech.edu
X-Mailing-List: <zsh-users@math.gatech.edu> archive/latest/1678
X-Loop: zsh-users@math.gatech.edu
X-Loop: zsh-workers@math.gatech.edu
Precedence: list
Resent-Sender: zsh-workers-request@math.gatech.edu


>	is there some easy way to roll over high-traffic logfiles
>in zsh, without losing any possible incoming data?

As it is a syslog log file there is a standard way to do this:

  mv /var/adm/extlog /var/adm/extlog.`date`
  cp /dev/null /var/adm/extlog
  kill -HUP `cat /etc/syslog.pid`

syslogd will continue writing to the old log file until the
kill signal is sent to it.

Nothing is ever lost - as long as syslog is behaving itself!

Hope this helps.



Duncan Sinclair.


      parent reply	other threads:[~1998-07-16 14:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-16  3:49 Sweth Chandramouli
1998-07-16  5:08 ` Bart Schaefer
1998-07-16  8:36   ` Zefram
1998-07-16 12:46   ` Brian Harvell
1998-07-16 15:26     ` Bart Schaefer
1998-07-16 16:14       ` Zefram
1998-07-16 16:41         ` Nitin P Garg
1998-07-17  7:36           ` Jos Backus
1998-07-24 23:42       ` Todd Graham Lewis
1998-07-16 13:45 ` Duncan Sinclair [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15546.900596720@dis.strath.ac.uk \
    --to=sinclair@dis.strath.ac.uk \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).