Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rolling over high-traffic logfiles?
- X-seq: zsh-users 1678
- From: Duncan Sinclair <sinclair@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: rolling over high-traffic logfiles?
- Date: Thu, 16 Jul 1998 14:45:20 +0100
- References: <19980715234957.51065@xxxxxxxxxxxxxxxxxxxx>
- Reply-to: sinclair@xxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxx Thu Jul 16 14:07:47 1998
Return-Path: <zsh-workers-request@xxxxxxxxxxxxxxx>
Delivered-To: mason-zsh@xxxxxxxxxxxxxxx
Received: (qmail 13065 invoked from network); 16 Jul 1998 14:07:46 -0000
Received: from math.gatech.edu (root@xxxxxxxxxxxxxx)
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@xxxxxxxxxxxxxxx
Subject: Re: rolling over high-traffic logfiles?
Newsgroups: dis.lists.zsh
References: <19980715234957.51065@xxxxxxxxxxxxxxxxxxxx>
Reply-To: sinclair@xxxxxxxxxxxxxxxx
Date: Thu, 16 Jul 1998 14:45:20 +0100
Message-ID: <15546.900596720@xxxxxxxxxxxxxxxx>
From: Duncan Sinclair <sinclair@xxxxxxxxxxxxxxxx>
Resent-Message-ID: <"ikc1-1.0.RI4.2EWhr"@math>
Resent-From: zsh-users@xxxxxxxxxxxxxxx
X-Mailing-List: <zsh-users@xxxxxxxxxxxxxxx> archive/latest/1678
X-Loop: zsh-users@xxxxxxxxxxxxxxx
X-Loop: zsh-workers@xxxxxxxxxxxxxxx
Precedence: list
Resent-Sender: zsh-workers-request@xxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxx Thu Jul 16 14:12:59 1998
Return-Path: <zsh-workers-request@xxxxxxxxxxxxxxx>
Delivered-To: mason-zsh@xxxxxxxxxxxxxxx
Received: (qmail 13119 invoked from network); 16 Jul 1998 14:12:58 -0000
Received: from math.gatech.edu (root@xxxxxxxxxxxxxx)
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@xxxxxxxxxxxxxxx
Subject: Re: rolling over high-traffic logfiles?
Newsgroups: dis.lists.zsh
References: <19980715234957.51065@xxxxxxxxxxxxxxxxxxxx>
Reply-To: sinclair@xxxxxxxxxxxxxxxx
Date: Thu, 16 Jul 1998 14:45:20 +0100
Message-ID: <15546.900596720@xxxxxxxxxxxxxxxx>
From: Duncan Sinclair <sinclair@xxxxxxxxxxxxxxxx>
Resent-Message-ID: <"ikc1-1.0.RI4.2EWhr"@math>
Resent-From: zsh-users@xxxxxxxxxxxxxxx
X-Mailing-List: <zsh-users@xxxxxxxxxxxxxxx> archive/latest/1678
X-Loop: zsh-users@xxxxxxxxxxxxxxx
X-Loop: zsh-workers@xxxxxxxxxxxxxxx
Precedence: list
Resent-Sender: zsh-workers-request@xxxxxxxxxxxxxxx
> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author