https://bugzilla.redhat.com/show_bug.cgi?id=1223569
Bug ID: 1223569
Summary: Logs in catalina.out are lost with each RPM update
Product: Fedora
Version: 21
Component: tomcat
Severity: medium
Assignee: ivan.afonichev(a)gmail.com
Reporter: doug.knight(a)karmix.org
QA Contact: extras-qa(a)fedoraproject.org
CC: alee(a)redhat.com, ivan.afonichev(a)gmail.com,
java-sig-commits(a)lists.fedoraproject.org,
krzysztof.daniel(a)gmail.com, me(a)coolsvap.net
Description of problem:
The rpm for tomcat contains /var/log/tomcat/catalina.out in its manifest. Each
time the tomcat package is updated, rpm replaces the catalina.out log with the
mostly-empty file from the package. All logs in catalina.out are lost in the
process.
Version-Release number of selected component (if applicable):
All versions since commit 3cb34c71 (tomcat-6.0.32-1)
How reproducible:
Always
Steps to Reproduce:
1. Install an old version of tomcat
2. Create logs in /var/log/tomcat/catalina.out
3. yum upgrade tomcat
Actual results:
catalina.out is clobbered, and the logs are lost.
Expected results:
Not this.
Additional info:
I recommend dropping catalina.out from the manifest. Since it is a log file,
and should initially be empty, we don't want rpm to manage its contents.
Likewise, we don't care about tracking its metadata since we are using the
/var/log/tomcat directory to control access to the tomcat log files.
I am not sure why we are putting the "tomcat-X.Y.Z RPM installed" message in
catalina.out; it seems like something that belongs in a system log, not an
application log. If we really need to keep that message around, we should add
it with something like
runuser -s /bin/bash -c '/bin/echo
"%{name}-%{major_version}.%{minor_version}.%{micro_version} RPM installed"
>>
%{logdir}/catalina.out'
from the %post script.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=ME0qtjP2n5&a=cc_unsubscribe