I am newbe to unix.
I have a very serious problem on my server.
I have a java application running, and all day on Monday morning, the process that is associated with this java is locked.
Usually I doing a shutdown by the shutdown java command , you have to kill the process with the kill-kill Number of process,
only with shutdown command the process dont die, he is locked.
logrotate there are many scripts on my server and I believe it is bringing this problem.
I researched a lot about this, but I still can not understand how this works.
Could you please help me:]
Following the end of this post I put my logrotate
I would like to know if the script is correct.
I would like to knoww if this script can cause the problem I mentioned.
Thank you in advance.
Scripts:
#TOMCAT 1
/opt/tomcat-magnolia/apache-tomcat-6.0.29/logs/* {
rotate 3
size=50M
compress
olddir /opt/tomcat-magnolia/apache-tomcat-6.0.29/logs/old
sharedscripts
copytruncate
missingok
}
#TOMCAT 2
/opt/tomcat6/logs/*.out /opt/tomcat6/logs/*.log {
rotate 3
size=50M
compress
olddir /opt/tomcat6/logs/old
sharedscripts
copytruncate
missingok
}
#APACHE
/opt/apache2/logs/*_log {
rotate 5
weekly
compress
sharedscripts
postrotate
killall -HUP httpd
endscript
}
#AND OTHER 10 SCRIPT OF LOGROTATE...