Show Table of Contents
1.3. Starting and Stopping Servers
The Directory Server is running when the
setup-ds-admin.pl script completes. Avoid stopping and starting the server to prevent interrupting replication, searches, and other server operations.
- If the Directory Server has SSL enabled, you cannot restart the server from the Console; you must use the command-line. It is possible to restart without being prompted for a password; see Section 7.4.4, “Creating a Password File for the Directory Server” for more information.
- Rebooting the host system can automatically start the
ns-slapdprocess. The directory provides startup or run command (rc) scripts. Use thechkconfigcommand to enable the Directory Server and Admin Server to start on boot.
1.3.1. Starting and Stopping Directory Server from the Console
- Start the Directory Server Console.
redhat-idm-console -a http://localhost:9830
- In the Tasks tab, click Start the Directory Server, Stop the Directory Server, or Restart the Directory Server.

When the Directory Server is successfully started or stopped from the Directory Server Console, the server displays a message box stating that the server has either started or shut down.
1.3.2. Starting and Stopping Directory Server from the Command Line
The most common way to start and stop the Directory Server service is using system tools on Red Hat Enterprise Linux. For example, Linux uses the
service tool:
service dirsrv {start|stop|restart} instance
Passing the instance name stops or starts only that instance; not giving any name starts or stops all instances.
Note
The service name for the Directory Server service on Red Hat Enterprise Linux is
dirsrv.
The start/stop scripts are in the
/usr/sbin/ directory and are run similar to the service start/stop command:
/usr/sbin/{start|stop|restart}-dirsrv instance
If the instance name is not given, then the all instances are started or stopped.
Alternatively, each instance has its own start and stop scripts that apply only to that instance.
/etc/dirsrv/slapd-instance_name/{start|stop|restart}-slapd1.3.3. Starting and Stopping Admin Server
The Admin Server service is stopped and started using system tools on Red Hat Enterprise Linux. For example, on Red Hat Enterprise Linux 6 (64-bit), the command is
service:
service dirsrv-admin {start|stop|restart}Note
The service name for the Admin Server process on Red Hat Enterprise Linux is
dirsrv-admin.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.