Prasanta Bhuyan 10 Years Ago Brett, nice meeting you yesterday after your session on clustering. I came to the symposium to get answer on couple of open question regarding licensing and clustering with respect to auto scaling on a cloud environment. I got those from you at the very last technical session of the symposium. I guess no one goes empty handed from the symposium, now quite literally. Please sign in to reply. Reply as... Cancel Brett Swaim Prasanta Bhuyan 10 Years Ago Glad to be of service! Please sign in to reply. Reply as... Cancel
Brett Swaim Prasanta Bhuyan 10 Years Ago Glad to be of service! Please sign in to reply. Reply as... Cancel
Daniel Nordhoff-Vergien 10 Years Ago Nice script, but if you have more then one instance of tomact running, it will allow only to start one of them, because you grep only for org.apache.catalina.startup.Bootstrap, so you should also grep for the tomcat home dirRegardsDaniel Please sign in to reply. Reply as... Cancel Brett Swaim Daniel Nordhoff-Vergien 10 Years Ago Absolutely true. For the client I made this for they were only running one JVM per box. It could and should be improved upon based on your specific needs. Please sign in to reply. Reply as... Cancel
Brett Swaim Daniel Nordhoff-Vergien 10 Years Ago Absolutely true. For the client I made this for they were only running one JVM per box. It could and should be improved upon based on your specific needs. Please sign in to reply. Reply as... Cancel
Kevin Thorpe 9 Years Ago Couple of minor points. Setting the rc symlinks should be done with chkconfig since this script supports it. Not all distros have those symlinks in that place.Secondly add exit 99 or similar after line 82 - tomcat not running. This script always returns success, puppet wants the exit status to be 'correct'. Please sign in to reply. Reply as... Cancel
Olaf Kock 9 Years Ago Nice, this will replace my simpler version next time. I like to add some "chown -r $TOMCAT_USER $TOMCAT_HOME/work $TOMCAT_HOME/temp $TOMCAT_HOME/logs $TOMCAT_HOME/webapps" (etc) because I was bitten once by someone accidentally starting tomcat as root - this does recover proper ownership at latest with the next startup - otherwise there'd be a bunch of unwritable files left over. Please sign in to reply. Reply as... Cancel
Akke Bengtsson 9 Years Ago The end of the liferay tomcat process apparently does not automatically mean that all external connections started by the tomcat process are properly shut down yet. We use the said script via cron to force a scheduled ldap import from our AD. (We never got the ldap.import.interval to work, only the initial sync at startup). The restart via the script usually means less than 5 seconds between shutdown and startup and more than often - no initial ldap import. Please sign in to reply. Reply as... Cancel
Pierpaolo Cira 8 Years Ago Great post, thank you.Just a note: if you run "service liferay stop" from a non-root user, it will prompt a password request to perform the stop operation by "su" mode.If you type a wrong password you will get a "su: Authentication failure", but process will continue:"Waiting for processes to exit. Timeout before we kill the pid: 0/45Waiting for processes to exit. Timeout before we kill the pid: 5/45..." Please sign in to reply. Reply as... Cancel ser aus Pierpaolo Cira 8 Years Ago Great post with a good example of start/stop script for tomcatThanks! Please sign in to reply. Reply as... Cancel
ser aus Pierpaolo Cira 8 Years Ago Great post with a good example of start/stop script for tomcatThanks! Please sign in to reply. Reply as... Cancel