The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is the server running or not.

Ralf
November 7, 2019

Hey,

First, I apologize for my bad English.

Is there a way to create a service that tests whether Jira (and Confluence) are running and if not, starting them. But if that is not possible send me an email?

I hope you understand what I mean and can help me!

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Ilya Turov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 7, 2019

hello, you can check if it's running by requesting "your.url/status" (works for both jira and conf):

https://community.atlassian.com/t5/Jira-questions/Status-URL-for-monitoring/qaq-p/146530

and then start it or not depending on what got returned

Ralf
November 7, 2019

Thanks, but I like that to happen automatically.

Ilya Turov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 7, 2019

well, bash + cron is the thing I guess

haven't done anything like this myself, but totally believe it's achievable

edit: to expand on what I said

inside the bash script you check for you server status with curl, and if it returns something but "running", it executes jira-start.sh

and with cron you run this script periodically, making it a service

Ralf
November 7, 2019

Unfortunately, I don't know enough about Linux and bash to be able to write such a script. Could someone Maybe help me please?