Forums

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

How to programatically check when Jira restarted?

PNG Jira Lead
Contributor
July 4, 2023

Without using the Jira User Interface,

how can I get the Jira uptime, ideally using the API, but if that's not possible then some other way via a script

The purpose:

  • We schedule OS updates and so this is automated planned maintenance.
  • We expect the OS - and therefore Jira - to be restarted between two datetime points (e.g. 2nd Tuesday, 10pm-11pm-Europe)
  • We'd like to programatically test for this (currently it's a manual task)

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
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.
July 4, 2023

Welcome to the Atlassian Community!

Jira does not directly look at this, you'll need to read it from the application logs (<jira-home>/logs/atlassian-jira.log is the best one to scan, it contains something like "<date><time>Jira successfully started" and a message about stopping if you shut it down cleanly)

PNG Jira Lead
Contributor
July 14, 2023

cheers @Nic Brough -Adaptavist- 

(sorry for the delayed response: swamped, the usual story...)

looks like "Stopping launchers" is the first logline that is written at the start of the shutdown event.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events