Starting the Server
To start the server, run the start-ds command on UNIX or Linux systemsor the start-ds.bat command on Windows systems. By default, the start-ds command startsthe server as a background process when no options are specified. You canuse the start-ds command with the --nodetach option to run the server asa foreground process. For more information, see start-ds in Sun OpenDS Standard Edition 2.2 Command-Line Usage Guide.
The start-ds command automatically attempts to find the correct Java environment touse when starting the server. You can specify the path to the Javainstallation, and provide additional options directly to the JVM when the directoryserver is starting. For more information, see Configuring the Default JVM and Java Arguments in Sun OpenDS Standard Edition 2.2 Installation Guide.
To Start the Server by Using start-ds
- Change to the appropriate directory.
(UNIX, Linux) $ cd install-dir/bin(Windows) C:\> cd install-dir\bat
- Type start-ds.
(UNIX, Linux) $ start-ds(Windows) C:\> start-ds
To Start the Server as a Foreground Process
- Change to the appropriate directory.
(UNIX, Linux) $ cd install-dir/bin(Windows) C:\> cd install-dir\bat
- Type start-ds with -N or --nodetach.
(UNIX, Linux) $ start-ds --nodetach(Windows) C:\> start-ds --nodetach
You can stop the directory server by pressing Control-C in the terminal windowin which the server is running or by running the stop-ds utility from another window.
To Start the Server by Using the Control Panel
This procedure describes how to use the Control Panel to administer the directoryserver.
This procedure applies to the directory server component only. If you have installeda proxy server, use the vdp-control-panel command to launch the proxy control panel.
- Change to the appropriate directory.
(UNIX, Linux) $ cd install-dir/bin(Windows) C:\> cd install-dir\bat
- Type control-panel to open the GUI control panel.
(UNIX, Linux) $ control-panel(Windows) C:\> control-panel
- On the Server Status panel, click Start.
To Restart the Server
- Change to the installation directory.
(UNIX, Linux) $ cd install-dir/bin(Windows) C:\> cd install-dir\bat
- Type stop-ds with -R or --restart.
(UNIX, Linux) $ stop-ds --restart(Windows) C:\> stop-ds --restart
To Restart the Server by Using the Control Panel
This procedure describes how to use the Control Panel to administer the directoryserver.
This procedure applies to the directory server component only. If you have installeda proxy server, use the vdp-control-panel command to launch the proxy control panel.
- Change to the appropriate directory.
(UNIX, Linux) $ cd install-dir/bin(Windows) C:\> cd install-dir\bat
- Type control-panel to open the GUI control panel.
(UNIX, Linux) $ control-panel(Windows) C:\> control-panel
- On the Server Status panel, click Restart.
- In the Confirmation dialog, click Yes.
To Start the Server by Using a Script (UNIX/Linux)
The start-ds command provides a “quiet” option ( -Q or --quiet) that suppressesoutput during the startup process unless a significant error occurs. You can use thisoption in a startup script.
- Create a shell script and add the following start-ds command.
install-dir/bin/start-ds --quiet
- Run the script.