Add restart option to /etc/init.d/jira

Can we simply add a restart option to /etc/init.d/jira?

 

13,16d12
<     restart)
<       ./stop-jira.sh
<       ./start-jira.sh
<       ;;
18c14
<         echo "Usage: $0 {start|stop|restart}"
---
>         echo "Usage: $0 {start|stop}"

 

/etc/init.d/jira restart

1 answer

0 vote
Pedro Cora Atlassian Team Apr 16, 2015

You can do something like:

#!/bin/bash
cd "/path/to/jira/bin"
case "$1" in
    start)
        ./start-jira.sh
        ;;
    stop)
        ./stop-jira.sh
        ;;
    restart)
        ./stop-jira.sh ; sleep 4 ; ./start-jira.sh
        ;;
    *)
        echo "Usage: $0 {start|restart|stop}"
        exit 1
        ;;
esac

;D

know I can do that - in fact I posted the code. But each and every time I go to install JIRA I have to remember to do it again. That's why I want them to do it!

P.S. I don't understand why you have the sleep. Works fine without it...

Pedro Cora Atlassian Team Apr 16, 2015

oh, gotcha ya! :D The sleep is just and old habit..

You don't look that old! ;-) So you're saying that this suggestion, that could be fixed in seconds, has been languishing around for 2 1/2 years...

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

145 views 1 17
Join discussion

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you