How to stop jira service, check if its been stopped, and start it up again using Cmd Line?I want to use Windows Task scheduler and write a batch file to restart service once a week. Is it possible to do it?
Thanks for your great support in advance.
If you installed JIRA as a service I don't believe you can use the .bat files to start and stop JIRA:
If you installed JIRA as a service, you can Start JIRA Server and Stop JIRA Server from the Windows Start menu.
You can't start or stop JIRA manually using the
If you did not install as a Service you can start and stop JIRA with the start/stop-jira.bat files.
Once you verify that you can start and stop JIRA via the .bat files you can monitor the status in a script using the tasklist command.
Here are a couple resources:
Hopefully that helps!
There's an obvious question of "why?" here - for what reason do you want to restart it? There are good ones, but if it's not a good reason, your time would be better spent fixing the real problem.
Anyway, there is a simple trick - schedule "stop jira" for (say) 1:05 and then "start jira" for 1:10.
Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot