Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
File Transfer Service
fts-rest
Commits
a382c735
Commit
a382c735
authored
Jun 20, 2014
by
Alejandro Alvarez Ayllon
Browse files
FTS-101
: Leave rest logs to logrotate to avoid selinux issues
parent
dd3c6323
Changes
5
Hide whitespace changes
Inline
Side-by-side
dist/fts-rest.spec
View file @
a382c735
...
...
@@ -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
...
...
src/fts3rest/.gitignore
View file @
a382c735
fts3.db
src/fts3rest/CMakeLists.txt
View file @
a382c735
...
...
@@ -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
...
...
src/fts3rest/fts-rest.logrotate
0 → 100644
View file @
a382c735
/var/log/fts3rest/fts3rest.log {
copytruncate
daily
rotate 15
compress
missingok
}
src/fts3rest/fts3rest.ini
View file @
a382c735
...
...
@@ -80,9 +80,9 @@ formatter = generic
[handler_log_file]
# See
# http://docs.python.org/2/library/logging.handlers.html
#timedrotatingfilehandler
class
=
logging.
handlers.TimedRotating
FileHandler
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment