Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Please follow the below steps to set Tomcat as service:

  1. Go to ${TOMCAT_HOME}/bin
  2. Open 'openspecimen' file in edit mode. Please use openspecimen file if not present in the folder
  3. Search for 'CATALINA_HOME'
  4. Set the 'CATALINA_HOME' to your tomcat home. The value of this variable will be same as ${TOMCAT_HOME}
  5. Rename the file to 'os_prod' and change the service name in the file as well.
  6. Copy 'os_prod' file and paste it into /etc/init.d
  7. Stop the tomcat
  8. Go to ${TOMCAT_HOME}/bin
  9. Run the command: sudo ./os_service_install.sh This will install the service and start the tomcat

Set the service to start on reboot

  1. sudo /sbin/chkconfig --list os_prod
    If nothing lists then run the below command otherwise directly run #3.
  2. sudo /sbin/chkconfig --add os_prod
  3. sudo /sbin/chkconfig os_prod on
  4. sudo chkconfig --level 6 os_prod on

  • No labels