2.3. Restarting a Server

Use one of the following techniques.

  • Use the stop-ds command.

    $ opendj/bin/stop-ds --restart
  • (UNIX) Create an RC script, and then use the script to stop the server.

    $ sudo opendj/bin/create-rc-script
     --outputFile /etc/init.d/opendj
     --userName mark
    $ /etc/init.d/opendj restart
  • (Windows) Register OpenDJ as a Windows Service, and then manage the service through Windows administration tools.

    C:\Users\Mark> opendj\bat\windows-service.bat --enableService