[packages/bacula] logrotate fixes
jajcus
jajcus at pld-linux.org
Tue Dec 24 10:41:00 CET 2013
commit 3f2aae08c98d660c23e467acde36b9a7a7ea9712
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Tue Dec 24 09:53:51 2013 +0100
logrotate fixes
– rotate the log configured in the default config file
(/var/log/bacula/log)
- archive to /var/log/archive/bacula
Release: /var/log/archive/bacula
bacula.logrotate | 11 ++---------
bacula.spec | 5 +++--
2 files changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/bacula.spec b/bacula.spec
index 6b740f6..f5ec1f5 100644
--- a/bacula.spec
+++ b/bacula.spec
@@ -32,7 +32,7 @@ Summary: Bacula - The Network Backup Solution
Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
Name: bacula
Version: 5.2.13
-Release: 1
+Release: 2
License: AGPL v3
Group: Networking/Utilities
Source0: http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
@@ -543,7 +543,7 @@ rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,pam.d,sysconfig} \
$RPM_BUILD_ROOT%{_sysconfdir}/rescue \
$RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \
- $RPM_BUILD_ROOT{%{_mandir},%{_bindir},/var/log/bacula} \
+ $RPM_BUILD_ROOT{%{_mandir},%{_bindir},/var/log{,/archive}/bacula} \
$RPM_BUILD_ROOT%{systemdunitdir}
%{__make} install \
@@ -839,6 +839,7 @@ ln -sf libbaccats-%{1}-%{version}.so %{_libdir}/libbaccats-%{version}.so || : \
%attr(770,root,bacula) %dir %{_localstatedir}
%attr(750,bacula,logs) %dir /var/log/bacula
%attr(640,bacula,logs) %ghost /var/log/bacula/log
+%attr(750,bacula,logs) %dir /var/log/archive/bacula
%files dir
%defattr(644,root,root,755)
diff --git a/bacula.logrotate b/bacula.logrotate
index 65baed9..0f6125f 100644
--- a/bacula.logrotate
+++ b/bacula.logrotate
@@ -1,12 +1,5 @@
-#
-# If you are appending to a log file (default), to
-# have your log file compressed, rotated, and after a time
-# deleted, after possibly editing the values below,
-# copy this file to:
-#
-# /etc/logrotate.d/bacula
-#
-/var/lib/bacula/log {
+/var/log/bacula/log {
+ olddir /var/log/archive/bacula
su root bacula
monthly
rotate 5
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/bacula.git/commitdiff/3f2aae08c98d660c23e467acde36b9a7a7ea9712
More information about the pld-cvs-commit
mailing list