scplyr Posted June 22, 2023 Share Posted June 22, 2023 Hi All, Looking to get some help with getting Jasper Reports Server getting started as a service.We originally had this running with an older install of 5.6 but am now encountering difficulty with version 8.2 and a newer platform.Our setup:Rocky Linux 9Jasper Reports Server 8.2 I originally saw this but did not work for us:https://community.jaspersoft.com/wiki/auto-startstop-bundled-tomcat-and-postgresql-linux Both tomcat and postgres turn on immediately but shut down upon startup. (monitored by spamming 'service jasperserver status' immediately on system reboot)I have edited both the user name (root) and the jasper reports location for the path in order to make the original script work. Upon installing the service,"service jasperserver start" and "service jasperserver stop" do work, and so does <js-install>/ctlscript.sh start/stop as well. However, we are looking to get this started on bootup. Has anyone have had any experiences doing this with a new install? Thanks so much! Link to comment Share on other sites More sharing options...
anish.rai Posted June 23, 2023 Share Posted June 23, 2023 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
Raphaël Peguet Posted June 26, 2023 Share Posted June 26, 2023 Hi Scplys,If the JRS ctlscript.sh works nicely, would any of the options described in this blog post https://dannyda.com/2022/09/22/how-to-run-start-execute-program-service-on-system-startup-boot-linux-debian-ubuntu-kali-linux-rocky-linux-redhat-fedora-etc/ works with your Rocky Linux 9 to auto-start the server on bootup? Cheers, Link to comment Share on other sites More sharing options...
Chris-W Posted January 18 Share Posted January 18 It is better to use systemctl rather than the old "service" way of doing with with init.d scripts. Try this below, it worked for me. You need to use RemainAfterExit because the script ends when it is finished starting or stopping, and we don't want systemd to assume the app has ended. > cat /etc/systemd/system/jaspersoft.service [Unit] Description=JasperServer After=network.target [Service] ExecStart=/opt/jasperreports-server-8.2.0/ctlscript.sh start ExecStop=/opt/jasperreports-server-8.2.0/ctlscript.sh stop User=root Group=root Type=oneshot RemainAfterExit=true TimeoutSec=60 [Install] WantedBy=multi-user.target > systemctl daemon-reload > systemctl enable jaspersoft.service > systemctl start jaspersoft.service View logs with: > journalctl -u jaspersoft.service View service status with: > systemctl status jaspersoft.service 1 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