Added logrotate configuration file

This commit is contained in:
patvdv 2018-11-10 21:38:42 +01:00
parent ba8f336945
commit ecbc9b36f4
2 changed files with 13 additions and 4 deletions

View File

@ -10,7 +10,7 @@ Group: Tools/Monitoring
License: GNU General Public License either version 2 of the License, or (at your option) any later version License: GNU General Public License either version 2 of the License, or (at your option) any later version
URL: http://www.kudos.be URL: http://www.kudos.be
Requires: ksh Requires: ksh,logrotate
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_topdir}/%{name}-%{version}-root BuildRoot: %{_topdir}/%{name}-%{version}-root
@ -44,6 +44,7 @@ cp ../SOURCES/etc/core/templates/mail_header.tpl $RPM_BUILD_ROOT/etc/opt/hc/core
cp ../SOURCES/etc/core/templates/mail_body.tpl $RPM_BUILD_ROOT/etc/opt/hc/core/templates cp ../SOURCES/etc/core/templates/mail_body.tpl $RPM_BUILD_ROOT/etc/opt/hc/core/templates
cp ../SOURCES/etc/core/templates/mail_footer.tpl $RPM_BUILD_ROOT/etc/opt/hc/core/templates cp ../SOURCES/etc/core/templates/mail_footer.tpl $RPM_BUILD_ROOT/etc/opt/hc/core/templates
install -d -m 755 $RPM_BUILD_ROOT/var/opt/hc install -d -m 755 $RPM_BUILD_ROOT/var/opt/hc
cp ../SOURCES/etc/logrotate.d/check_health $RPM_BUILD_ROOT/etc/logrotate.d/check_health
%post %post
# ------------------------- CONFIGURATION starts here ------------------------- # ------------------------- CONFIGURATION starts here -------------------------
@ -154,8 +155,11 @@ fi
%attr(644, root, root) /etc/opt/hc/core/templates/mail_body.tpl %attr(644, root, root) /etc/opt/hc/core/templates/mail_body.tpl
%attr(644, root, root) /etc/opt/hc/core/templates/mail_footer.tpl %attr(644, root, root) /etc/opt/hc/core/templates/mail_footer.tpl
%dir /var/opt/hc %dir /var/opt/hc
%attr(644, root, root) /etc/logrotate.d/check_health
%changelog %changelog
* Sat Nov 10 2018 <patrick@kudos.be> - 0.1.0
- Added logrotate file
* Mon Dec 18 2017 <patrick@kudos.be> - 0.0.9 * Mon Dec 18 2017 <patrick@kudos.be> - 0.0.9
- Added report_std.sh - Added report_std.sh
* Tue Jun 20 2017 <patrick@kudos.be> - 0.0.8 * Tue Jun 20 2017 <patrick@kudos.be> - 0.0.8

View File

@ -0,0 +1,5 @@
/var/opt/hc/check_health.sh.log {
monthly
notifempty
create 644 root root
}