[Techtalk] newsyslog naming scheme could be improved?
Michelle Konzack
linux4michelle at tamay-dogan.net
Tue Oct 14 23:20:51 UTC 2008
Am 2008-10-14 15:09:17, schrieb Gina Feichtinger:
> On 14.10.2008 0:15 Uhr, Michelle Konzack wrote:
> > Hello Kelly,
> >
> > Am 2008-10-11 09:33:42, schrieb Kelly Jones:
> >> newsyslog rotates logfiles so that messages.0.gz is yesterday's file,
> >> messages.1.gz is the day before's, etc.
> >
> > I am using logrotate which create files like:
>
> Hmmm, since when does logrotate use "dateext" per default on a Debian Etch
> system?
Not by default, but you can:
----8<------------------------------------------------------------------
/home_www/logs/*.log {
dateext
daily
missingok
rotate 32767
nocompress
delaycompress
ifempty
create 664
sharedscripts
postrotate
if [ -f /var/run/apache2.pid ]; then
/etc/init.d/apache2 restart > /dev/null
fi
endscript
}
----8<------------------------------------------------------------------
I love this new feature...
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
More information about the Techtalk
mailing list