Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replicate logrotate stuff from Tomcat7 in odn-cas, odn-midpoint, odn-solr, unifiedviews-backend and unifiedviews-frontend #257

Closed
hanecak opened this issue May 3, 2016 · 1 comment

Comments

@hanecak
Copy link
Contributor

hanecak commented May 3, 2016

In ODN, we have odn-cas, odn-midpoint, odn-solr, unifiedviews-backend and unifiedviews-frontend deployed in their own Tomcat instances. Those are logging to catalina.out, each to their own. But unlike Tomat7, those ODN modules do not ship logrotate settings so the logs is not rotated and grows "forever".

So, please, replicate Tomat7 logrotate stuff in mentioned ODN modules.

More info based on contents of http://anonscm.debian.org/cgit/pkg-java/tomcat7.git/tree/debian :

  1. The key file is /etc/logrotate.d/tomcat7 . We need also /etc/logrotate.d/odn-cas, etc. with similar content.
  2. Debian's implementation for Tomcat7 is sort of complicated (see grep -r logrotate .), but the benefit is that logrotatefile contains actual user and group matching real user and group under which the Tomcat is running, to ensure smooth operation even if sysadmin tweaks those values. It might be an overkill for us, but we should do it same way so as to not confuse sysadmin by doing it differently in our tomcat instances.

This will help us fix #256 .

@hanecak hanecak added this to the ODN 1.4.0 milestone May 3, 2016
@hanecak hanecak changed the title replicate logrotate stuff from Tomcat7 in odn-cas, odn-midpoint, odn-solr, unifiedviews-backend and unifiedviews-backend replicate logrotate stuff from Tomcat7 in odn-cas, odn-midpoint, odn-solr, unifiedviews-backend and unifiedviews-frontend May 3, 2016
Jan-Marcek pushed a commit to OpenDataNode/odn-midpoint that referenced this issue Jun 3, 2016
Jan-Marcek pushed a commit to OpenDataNode/odn-solr that referenced this issue Jun 6, 2016
@Jan-Marcek
Copy link
Contributor

unifiedviews - UnifiedViews/Core#582

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants