Start OpenDJ at boot time on Linux

OpenDJ logo

You might have noticed in the OpenDJ/bin directory a tool called create-rc-script. As you probably guessed, you use this tool to create an RC script, as in sudo create-rc-script -f /etc/init.d/opendj -u mark.

On distributions like Debian or Ubuntu, for example, sudo update-rc.d opendj defaults then arranges to run the script when runlevels change, in effect starting the server at boot time and stopping the server at shutdown.

Unless you run OpenDJ as root, make sure you use the -u userName option.

About these ads

3 Comments

Filed under Directory Services and LDAP

3 responses to “Start OpenDJ at boot time on Linux

  1. Pingback: More OpenDJ Tips… « Ludo's Sketches

  2. For a CentOS 6 system, looks like the command to manage the services is slightly different:

    # create-rc-script -f /etc/init.d/opendj -u mark
    # chkconfig --add opendj
    # chkconfig --list opendj
    opendj         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
  3. Works a treat – thanks Mark.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s