mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-05-21 23:46:27 +02:00
Added logrotate to Fedora package
This commit is contained in:
parent
2cef55b096
commit
9cafded7de
|
@ -1,7 +1,8 @@
|
||||||
%global fastnetmon_attackdir %{_localstatedir}/log/fastnetmon_attacks
|
%global fastnetmon_attackdir %{_localstatedir}/log/fastnetmon_attacks
|
||||||
%global fastnetmon_user root
|
%global fastnetmon_user root
|
||||||
%global fastnetmon_group %{fastnetmon_user}
|
%global fastnetmon_group %{fastnetmon_user}
|
||||||
%global fastnetmon_config_path %{_sysconfdir}/fastnetmon.conf
|
%global fastnetmon_config_path %{_sysconfdir}/fastnetmon.conf
|
||||||
|
%global fastnetmon_logrotate_path %{_sysconfdir}/logrotate.d/fastnetmon
|
||||||
|
|
||||||
%global fastnetmon_commit master
|
%global fastnetmon_commit master
|
||||||
%global fastnetmon_project_name fastnetmon
|
%global fastnetmon_project_name fastnetmon
|
||||||
|
@ -74,6 +75,9 @@ install -p -D -m 0755 %__cmake_builddir/fastnetmon_api_client %{buildroot}%{_bin
|
||||||
# install config
|
# install config
|
||||||
install -p -D -m 0644 src/fastnetmon.conf %{buildroot}%{fastnetmon_config_path}
|
install -p -D -m 0644 src/fastnetmon.conf %{buildroot}%{fastnetmon_config_path}
|
||||||
|
|
||||||
|
# install logrotate confioguration
|
||||||
|
install -p -D -m 0644 src/fastnetmon_logrotate %{buildroot}%{fastnetmon_logrotate_path}
|
||||||
|
|
||||||
# Create log folder
|
# Create log folder
|
||||||
install -p -d -m 0700 %{buildroot}%{fastnetmon_attackdir}
|
install -p -d -m 0700 %{buildroot}%{fastnetmon_attackdir}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
/var/log/fastnetmon.log
|
||||||
|
{
|
||||||
|
rotate 31
|
||||||
|
daily
|
||||||
|
size 10M
|
||||||
|
missingok
|
||||||
|
copytruncate
|
||||||
|
notifempty
|
||||||
|
delaycompress
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue