new upstream version 3.9.2
- log to syslog
This commit is contained in:
parent
209cf3d9cd
commit
9cb55142e5
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,3 +10,4 @@ logrotate-3.7.9.tar.gz
|
|||||||
/logrotate-3.8.8.tar.gz
|
/logrotate-3.8.8.tar.gz
|
||||||
/logrotate-3.8.9.tar.gz
|
/logrotate-3.8.9.tar.gz
|
||||||
/logrotate-3.9.1.tar.gz
|
/logrotate-3.9.1.tar.gz
|
||||||
|
/logrotate-3.9.2.tar.gz
|
||||||
|
@ -6,7 +6,7 @@ index c6d50d4..967932e 100644
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
-/usr/sbin/logrotate /etc/logrotate.conf
|
-/usr/sbin/logrotate /etc/logrotate.conf
|
||||||
+/usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf
|
+/usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status -l syslog /etc/logrotate.conf
|
||||||
EXITVALUE=$?
|
EXITVALUE=$?
|
||||||
if [ $EXITVALUE != 0 ]; then
|
if [ $EXITVALUE != 0 ]; then
|
||||||
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
|
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
Summary: Rotates, compresses, removes and mails system log files
|
Summary: Rotates, compresses, removes and mails system log files
|
||||||
Name: logrotate
|
Name: logrotate
|
||||||
Version: 3.9.1
|
Version: 3.9.2
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPL+
|
License: GPL+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Url: https://fedorahosted.org/logrotate/
|
Url: https://fedorahosted.org/logrotate/
|
||||||
Source: https://fedorahosted.org/releases/l/o/logrotate/logrotate-%{version}.tar.gz
|
Source: https://github.com/logrotate/logrotate/archive/logrotate-%{version}.tar.gz
|
||||||
Source1: rwtab
|
Source1: rwtab
|
||||||
# Change the location of status file
|
# Change the location of status file
|
||||||
Patch0: logrotate-3.9.1-statusfile.patch
|
Patch0: logrotate-3.9.1-statusfile.patch
|
||||||
@ -83,6 +83,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%config(noreplace) %{_sysconfdir}/rwtab.d/logrotate
|
%config(noreplace) %{_sysconfdir}/rwtab.d/logrotate
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 20 2016 Jan Kaluza <jkaluza@redhat.com> - 3.9.2-1
|
||||||
|
- new upstream version 3.9.2
|
||||||
|
- log to syslog
|
||||||
|
|
||||||
* Wed Jun 17 2015 Jan Kaluza <jkaluza@redhat.com> - 3.9.1-2
|
* Wed Jun 17 2015 Jan Kaluza <jkaluza@redhat.com> - 3.9.1-2
|
||||||
- move logrotate.status to /var/lib/logrotate and add it to rwtab.d (#1127415)
|
- move logrotate.status to /var/lib/logrotate and add it to rwtab.d (#1127415)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user