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

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 Leaders.
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 Leaders.
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?

Suggest an answer

Log in or Sign up to answer