Added logrotate configuration file
This commit is contained in:
parent
ba8f336945
commit
ecbc9b36f4
@ -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
|
||||
URL: http://www.kudos.be
|
||||
|
||||
Requires: ksh
|
||||
Requires: ksh,logrotate
|
||||
BuildArch: noarch
|
||||
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_footer.tpl $RPM_BUILD_ROOT/etc/opt/hc/core/templates
|
||||
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
|
||||
# ------------------------- 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_footer.tpl
|
||||
%dir /var/opt/hc
|
||||
%attr(644, root, root) /etc/logrotate.d/check_health
|
||||
|
||||
%changelog
|
||||
* Sat Nov 10 2018 <patrick@kudos.be> - 0.1.0
|
||||
- Added logrotate file
|
||||
* Mon Dec 18 2017 <patrick@kudos.be> - 0.0.9
|
||||
- Added report_std.sh
|
||||
* Tue Jun 20 2017 <patrick@kudos.be> - 0.0.8
|
||||
|
5
configs/logrotate.d/check_health
Normal file
5
configs/logrotate.d/check_health
Normal file
@ -0,0 +1,5 @@
|
||||
/var/opt/hc/check_health.sh.log {
|
||||
monthly
|
||||
notifempty
|
||||
create 644 root root
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user