Create script to stop and start Tomcat service

create a script that automatically stops and starts the Tomcat service on Linux

Configure Log rotation of Tomcat

Configuring log rotation in Tomcat by a script in logrotate/d.