From: Xavier Mertens <xavier () be ! wanadoo ! com>
To: tru64-unix-managers
Subject: [Summary] Log file rotation?
Date: Mon, 19 Nov 2001 09:07:37 +0000 [thread overview]
Message-ID: <102653643321835.tru64-unix-managers.marc@archive.invalid> (raw)
Thanks to all of you!
From the syslog.conf man page:
"The syslogd daemon automatically creates a new date directory every 24
hours and also when you boot the system. The current directory is a link to
the latest date directory. To get the latest logs, you only need to refer-
ence the /var/adm/syslog.dated/current directory."
Also, 'kill -HUP <syslog_pid>' performs the file rotation.
I just added this command in the root's crontab.
Regards,
Xavier
--
Xavier Mertens &Wanadoo Belgium - A subsidiary of France Telecom
Head of NOC
XM1-6BONE "Contrary to popular belief, Unix is userfriendly. It just
XM3-RIPE happens to be selective about who it makes friends with"
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sb20293A2058554E494Csnlbxq'|dc
On Mon, 19 Nov 2001, Xavier Mertens wrote:
> Hi Admins,
>
> This is a stupid question, but where is defined the daily log file
> rotation on a Tru64 system?
>
> I just found in the root's crontab:
>
> 40 4 * * * find /var/adm/syslog.dated/* -depth -type d -ctime +7 -exec rm -rf {} \;
>
> Regards,
> Xavier
>
> --
> Xavier Mertens &Wanadoo Belgium - A subsidiary of France Telecom
> Head of NOC
> XM1-6BONE "Contrary to popular belief, Unix is userfriendly. It just
> XM3-RIPE happens to be selective about who it makes friends with"
>
> echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sb20293A2058554E494Csnlbxq'|dc
>
>
reply other threads:[~2001-11-19 9:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox