Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

Thanks,

Martin

share|improve this question

2 Answers 2

up vote 0 down vote accepted

In the end, this solved the problem: https://confluence.atlassian.com/display/JIRA/Starting+JIRA+Automatically+on+Linux?focusedCommentId=214865540#comment-214865540

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

I've been having the same problem with my own java process and I found this today: https://github.com/hectcastro/chef-statsd/issues/10

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

Your Answer

 
discard

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.