Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running Atlassian JIRA on Ubuntu 12.04 LTS (Precise Pangolin). I would like to automatically start JIRA whenever the system boots. For this purpose, I created script jira in /etc/init.d, similar to the one described in Atlassian's Wiki.

I can manually start / stop JIRA by calling /etc/init.d/jira accordingly. However, JIRA does not start during the boot process. In /var/log/boot.log I see messages like Starting jira... and jira started... which I added in /etc/init.d/jira; however, it seems that the Java process does not survive the boot process as there is no Java process after reboot.

Any idea why the Java process does not outlive the boot process?



share|improve this question

I've been having the same problem with my own java process and I found this today:

It's possible your issue is the same. Inside my startup script I was using sudo to launch my java process but if the line "Defaults requiretty" is uncommented in /etc/sudoers then sudo isn't allowed on boot. I tested the theory by commenting out that line and doing a reboot and sure enough my process started. I'm now using "daemon --user=myuser myapp" to launch my app instead. Hope that helps.

share|improve this answer
Welcome to AskUbuntu! When referring to external pages, it's good practice to include or summarize the key information from that post in case the page disappers in the future. – chaskes May 21 '13 at 16:10
up vote 0 down vote accepted

In the end, this solved the problem:

share|improve this answer
Please add more info of the steps you used form the link, not only a link. This site is supposed to have completed answers not links to completed answers (witch are a good extra for an answer). – PhoneixS Jun 4 '13 at 9:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.