Commit a382c735 authored by Alejandro Alvarez Ayllon's avatar Alejandro Alvarez Ayllon
Browse files

FTS-101: Leave rest logs to logrotate to avoid selinux issues

parent dd3c6323
......@@ -136,6 +136,7 @@ cp --preserve=timestamps -r src/fts3 %{buildroot}/%{python_sitelib}
%dir %config(noreplace) %{_sysconfdir}/fts3
%config(noreplace) %{_sysconfdir}/fts3/fts3rest.ini
%config(noreplace) %{_sysconfdir}/httpd/conf.d/fts3rest.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/fts-rest
%dir %attr(0755,apache,apache) %{_var}/cache/fts3rest
%dir %attr(0755,apache,apache) %{_var}/log/fts3rest
%doc docs/README.md
......
......@@ -3,9 +3,8 @@ cmake_minimum_required (VERSION 2.6)
add_subdirectory (fts3rest)
# egg-info
install (DIRECTORY fts3rest.egg-info
install (DIRECTORY fts3rest.egg-info
DESTINATION ${PYTHON_SITE_PACKAGES}
)
# WSGI
......@@ -17,6 +16,10 @@ install (PROGRAMS fts3rest.wsgi
install (FILES fts3rest.ini
DESTINATION etc/fts3
)
install (FILES fts-rest.logrotate
DESTINATION etc/logrotate.d
RENAME fts-rest
)
# Apache configuration file
install (FILES fts3rest.conf
......
/var/log/fts3rest/fts3rest.log {
copytruncate
daily
rotate 15
compress
missingok
}
......@@ -80,9 +80,9 @@ formatter = generic
[handler_log_file]
# See
# http://docs.python.org/2/library/logging.handlers.html#timedrotatingfilehandler
class = logging.handlers.TimedRotatingFileHandler
args = ('/var/log/fts3rest/fts3rest.log', 'D', 1)
# http://docs.python.org/2/library/logging.handlers.html
class = logging.FileHandler
args = ('/var/log/fts3rest/fts3rest.log', 'a')
level = NOTSET
formatter = generic
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment