Use one of the following techniques.
-
Use the stop-ds command.
$ opendj/bin/stop-ds
-
(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 $ sudo /etc/init.d/opendj stop
-
(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

