Re: [CentOS] Manually rolling logfiles over

2009-01-16 Thread Kai Schaetzl
Joseph L. Casale wrote on Fri, 16 Jan 2009 15:11:35 -0700: > How can I do this w/o restarting services or rebooting? Neither restarting services nor rebooting rotates logs. man logrotate shows you how to do that manually what logrotate does during the night. You can also do a dry-run. Kai --

Re: [CentOS] Manually rolling logfiles over

2009-01-16 Thread John R Pierce
Joseph L. Casale wrote: > How can I do this w/o restarting services or rebooting? > centos is setup using logrotate, which rotates logs according to various conf files (/etc/logrotate.conf has the global defaults, and /etc/logrotate.d/* has the app specific settings) this is normally invoked

Re: [CentOS] Manually rolling logfiles over

2009-01-16 Thread Joseph L. Casale
>If I understood well what you are looking for, to manually rotate your >logs, you could launch logrotate as follows: > >logrotate -f /etc/logrotate.d/ That was the ticket! thanks! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mai

Re: [CentOS] Manually rolling logfiles over

2009-01-16 Thread Giuseppe Fuggiano
2009/1/16 Joseph L. Casale : > How can I do this w/o restarting services or rebooting? If I understood well what you are looking for, to manually rotate your logs, you could launch logrotate as follows: logrotate -f /etc/logrotate.d/ -- Giuseppe Fuggiano

Re: [CentOS] Manually rolling logfiles over

2009-01-16 Thread nate
Joseph L. Casale wrote: > How can I do this w/o restarting services or rebooting? copy/truncate. copy log file to a new file and truncate the original (cat /dev/null >filename) Or setup a logrotate config with the copytruncate option. There is a chance I believe to drop some log events between