Date: Fri, 29 Mar 2024 01:30:36 +0000 (UTC) Message-ID: <1221160543.11593.1711675836639@fra-prod-wiki03.geant.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_11592_1385110867.1711675836637" ------=_Part_11592_1385110867.1711675836637 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
It is time to clean up the confusing log rotating set-up on our =
Ubuntu servers.
Currently log rotating is done through syslog and logrotate. We will kill =
the syslog stuff, and use logrotate for rotating all logs.
Sysklogd will be just another process that needs to have its logs rotated =
by logrotate.
echo= -e "`printf \\"\"%s\\" \" \`syslogd-listfiles -a\`` {\n\tpostrotate\n\tsha= redscripts\n\t\t/etc/init.d/sysklogd reload > /dev/null\n\tendscript\n}\= n" > /etc/logrotate.d/sysklogd
/etc/logrotate.c=
onf
- see man logrotate. Very useful option is weekly rotate 260 dateext create compress delaycompress missingok include /etc/logrotate.d /var/log/wtmp { monthly rotate 60 create } /var/log/btmp { monthly create rotate 60 }
rm /= etc/cron.*/sysklogd
This should to the trick. Started testing on Cajones on 2010-01=
-11.
Also configured on Confluence.