From 45a440c5aee32c748c656e49b48bf709db53201f Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Wed, 15 Jul 2015 00:13:41 +0200 Subject: [PATCH] Aggiunto file di logrotation. --- doraemon.logrotate | 6 ++++++ doraemon.spec | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 doraemon.logrotate diff --git a/doraemon.logrotate b/doraemon.logrotate new file mode 100644 index 0000000..443f997 --- /dev/null +++ b/doraemon.logrotate @@ -0,0 +1,6 @@ +/var/log/doraemon.log { + daily + rotate 15 + compress + missingok +} diff --git a/doraemon.spec b/doraemon.spec index 7ee3202..49796d5 100644 --- a/doraemon.spec +++ b/doraemon.spec @@ -1,7 +1,7 @@ Summary: Helps client to join domain and maintain itself Name: doraemon Version: 1.0.0 -Release: 1.ns6 +Release: 2.ns6 URL: https://github.com/bglug-it/doraemon/ License: GPLv2+ Group: System Environment/Daemons @@ -33,6 +33,10 @@ install -d -m 755 %{buildroot}%{_bindir} install -m 755 doraemon.py %{buildroot}%{_bindir}/%{name}.py # Cartella del database install -d %{buildroot}%{_sharedstatedir}/%{name} +# File per il rotate +install -d %{buildroot}%{_sysconfdir}/logrotate.d +install -m 644 doraemon.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name} +# File di Nethserver install -d %{buildroot}%{_sysconfdir}/e-smith/db/configuration/defaults/%{name} install -m 644 type %{buildroot}%{_sysconfdir}/e-smith/db/configuration/defaults/%{name}/type install -m 644 status %{buildroot}%{_sysconfdir}/e-smith/db/configuration/defaults/%{name}/status @@ -64,6 +68,7 @@ rm -rf %{buildroot} %attr(755,-,-) %{_bindir}/%{name}.py %dir %attr(755,-,-) %{_sharedstatedir}/%{name} +%{_sysconfdir}/logrotate.d/%{name} %dir %attr(755,-,-) %{_sysconfdir}/e-smith/db/configuration/defaults/%{name} %{_sysconfdir}/e-smith/db/configuration/defaults/%{name}/status %{_sysconfdir}/e-smith/db/configuration/defaults/%{name}/type @@ -71,5 +76,8 @@ rm -rf %{buildroot} %{_sysconfdir}/e-smith/db/configuration/defaults/%{name}/TCPPort %changelog +* Wed Jul 15 2015 Emiliano Vavassori - 1.0.0-2.ns6 +- Added logrotate file. + * Mon Jul 13 2015 Emiliano Vavassori - 1.0.0-1.ns6 - Unique binary for both ansiblehelper and mac2hostname.