Execute Groovy Script on Jira Restart

We are currently building a script plugin. As part of this, we have one script that will utilize the example Store all Environment Specific Variables and should be run everytime Jira is restarted.

How do i achieve this? The screenshot shows the current location of the script.

Hi
Tricky to achieve.
There are no startup events you can listen to.
You could try writing your own plugin and use the startup phase of it’s lifecycle to perform work.
Or possibly create a REST endpoint and call it from the Jira startup script although timing the call to wait until Jira was started could be difficult.