Restarting Tomcat on Pear
Posted by mholmes on 17 Oct 2012 in Servers, Documentation
EDIT: These instructions have been superceded. See this.
The Tomcat setup has recently changed with the move of stable apps to Grape, so this is an updated set of instructions. MDH and GN have rights to run the tomcat script; SA probably does too.
- ssh mholmes@pear.hcmc.uvic.ca
- cd /etc/init.d
- sudo ./tomcat stop
At this point, tomcat will seem to have stopped, but it probably hasn't. Confirm by doing this:
- ps aux | grep tomcat
If you see both tomcat running, you'll have to kill -9 tomcat. Since the process runs as hcmc, and you can't sudo-kill it, do this:
- su hcmc
- kill -9 [the process number]
Do ps aux again to check that the process is dead (you should not see tomcat running now). Assuming that worked, then
- exit (to return to mholmes)
- sudo ./tomcat start
Wait a couple of minutes, then check that tomcat is back up and that projects are working.