caseys Posted April 13, 2012 Share Posted April 13, 2012 Hello,I'm tyring to get JasperReports 4.0.0 to start automatically when rebooting the server. I think I have the init script configured correctly, but Tomcat won't shutdown properly on reboot. I have to rm the `/opt/jasperreports-server-cp-4.0.0/apache-tomcat/temp/catalina.pid' and then start jasper for it to come back online. Any help is greatly appreciated!Thanks! Link to comment Share on other sites More sharing options...
caseys Posted April 16, 2012 Author Share Posted April 16, 2012 Added a line in the script to delete the catalina.pid before starting jasper. Link to comment Share on other sites More sharing options...
tkavanagh Posted April 16, 2012 Share Posted April 16, 2012 Hmm, that's odd that it is not shutting down cleanly (at least getting rid of the pid). Did you get a chance to check and see if there were any unusual ownership or permission problems within the <tomcat>/temp folder? I assume that you are running a flavor of linux. By the way ... I just made an example script that is intended to be used for starting and stopping on system reboot. I also created instructions which are in a readme.txt file. How did you setup your "auto-restart" on reboot? Using /etc/init.d script?I checked in my changes to the most current trunk code: jasperserver/scripts/linux/ readme.txt jasperserver (this is the sample script) I tested under Ubuntu. I didn't finish fully testing under Redhat/CentOS.I'll see if I can attach to this thread for people to look at. Link to comment Share on other sites More sharing options...
tkavanagh Posted April 16, 2012 Share Posted April 16, 2012 Attaching reboot script and instructions. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now