fix tomcat restart no wait [skip ci]