How to run script on Tomcat startup?

前端 未结 2 551
感动是毒
感动是毒 2021-01-13 21:52

I would like to know how to run a shell script on Tomcat startup, that is when catalina.log prints \"INFO: Server startup in xxx ms\"

Thanks in advance, bye

2条回答
  •  抹茶落季
    2021-01-13 22:29

    find tomcat startup script (in /etc/init.d/ maybe tomcat7) and write call-to-your-script in appropriate place at start block.

提交回复
热议问题