Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I get Crowd to start automatically at startup on Ubuntu?

I've tried this page in particular: https://confluence.atlassian.com/display/CROWD/Setting+Crowd+to+Run+Automatically+and+Use+an+Unprivileged+System+User+on+UNIX

However, this didn't work. The latest thing I've done is to create a script in etc/init.d that simply has:

exec sudo -u crowd /opt/atlassian/crowd/start_crowd.sh

I've then done update-rc.d crowd defaults

However, the script is not run on startup.

What am I doing wrong here?

5 answers

1 accepted

1 vote
Answer accepted

I have it working now. Part of this is that I've been working on startup scripts for a couple of different applications and server and so now feel a bit more comfortable with using them.

Primarily, follow the steps here: https://confluence.atlassian.com/display/CROWD/Setting+Crowd+to+Run+Automatically+and+Use+an+Unprivileged+System+User+on+UNIX

Make sure you do the change permissions step.

After you've created the symlink to the crowd script you created from the example (and make sure that the script is executable chmod a+x /path/to/scriptname), run update-rc.d defaults. This will will create links in all of the various run levels which will enable your linux instance to manage shutdowns, startups, restarts, and the like, properly.

This should all work now.

Does not work on Ubuntu 18.04 and Crowd 4.0.0

Hi Jeffrey!

As an alternative, I suggest you do do the following:

1) Edit your /etc/bash.bashrc
2) In the last line add the following lines:
<Crowd-Install>/start_crowd.sh

Where <Crowd-Install> should be changed by the full path to the start_crowd.sh file.

However is important to mentioned that, in this case, you crowd will start as root.
If you want to run it as another user, you may use put the following line on the last line of the file (/etc/bash.bashrc):
su - <youruser> -c "<Crowd-Install>/start_crowd.sh"

Hope it helps!!

Won't this only launch crowd when the shell starts? I've been using the etc/init.d directory to manage startup scripts.

Here's a quick fix. Add the following to the crontab of the user with which you run crowd (<USER>). This assumes crowd is installed in /opt/atlassian/crowd/

sudo crontab -e -u <USER>
@reboot /opt/atlassian/crowd/start_crowd.sh

I've been working with Atlassian support and we've sort of run to the end of possibilities. I have a startup script that runs fine when I launch it manually. Crowd starts up. It is set to run as a dedicated user.

However, when the script is launced during startup, it seems to start, but then switches to shutdown. I'm not at all sure why.

It looks as if the script isn't starting correctly, even if run by root, so I'll have to dig farther into it.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Data Center

Introducing Data Center Community licenses

I'm Alison Huselid, Head of Product for Data Center at Atlassian. As we shared in our last post, we’ve been working on a solution for those of you who work for charitable non-profit organizations tha...

633 views 9 38
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you