Re: [PATCH] Move stat/*.log to the end of logrotate.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Applied, thanks!

On Mon, 4 Jul 2011, Alexandre Oliva wrote:

> Logrotate ignores entries after a rule that doesn't match any files.
> 
> Signed-off-by: Alexandre Oliva <oliva@xxxxxxxxxxxxxxxxx>
> ---
>  src/logrotate.conf |   19 ++++++++++---------
>  1 files changed, 10 insertions(+), 9 deletions(-)
> 
> diff --git a/src/logrotate.conf b/src/logrotate.conf
> index 14bc02c..a4fb73f 100644
> --- a/src/logrotate.conf
> +++ b/src/logrotate.conf
> @@ -1,12 +1,3 @@
> -# Separate stat/*.log into a different rule because sometimes
> -# it doesn't exist, and logrotate will ignore the entire rule
> -# if any part of the file list isn't found.
> -/var/log/ceph/stat/*.log {
> -    rotate 7
> -    daily
> -    compress
> -}
> -
>  /var/log/ceph/*.log {
>      rotate 7
>      daily
> @@ -16,3 +7,13 @@
>          invoke-rc.d ceph reload >/dev/null || service ceph reload >/dev/null
>      endscript
>  }
> +
> +# Separate stat/*.log into a different rule because sometimes
> +# it doesn't exist, and logrotate will ignore the entire rule
> +# and the remainder of the file if any part of the file list
> +# isn't found.
> +/var/log/ceph/stat/*.log {
> +    rotate 7
> +    daily
> +    compress
> +}
> -- 
> 1.7.4.4
> 
> -- 
> Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
> You must be the change you wish to see in the world. -- Gandhi
> Be Free! -- http://FSFLA.org/   FSF Latin America board member
> Free Software Evangelist      Red Hat Brazil Compiler Engineer
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux