Tomcat catalina.out logrotate on redhat not working properly

筅森魡賤 提交于 2020-01-05 08:29:26

问题


i am trying to roll the log catalina.out on a webserver using logrotate. i have been able to roll the log and a log catalina.out-dateext is created. but i notice that the log being written in the new file catalina.out-dateext. Is there something that need to be done on the webserver?

Thank you


回答1:


Add copytruncate in your /etc/pex/tomcat file. For more info about all the options: vineetmanohar.com/2010/03/howto-rotate-tomcat-catalina-out



来源:https://stackoverflow.com/questions/18887682/tomcat-catalina-out-logrotate-on-redhat-not-working-properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!