1.3. Starting and Stopping Servers

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.

1.3.1. Starting and Stopping Directory Server from the Console

  1. Start the Directory Server Console.

    /usr/bin/redhat-idm-console -a http://localhost:9830
    
  2. 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

There are two ways to start, stop, or restart the Directory Server:

  • There are scripts in the instance directories. For example:

    /usr/lib/dirsrv/slapd-instance/start-slapd
    /usr/lib/dirsrv/slapd-instance/restart-slapd
    /usr/lib/dirsrv/slapd-instance/stop-slapd
    
  • The Directory Server service can also be stopped and started using system tools on Red Hat Enterprise Linux and Solaris. For example, Linux uses the service tool:

    service dirsrv {start|stop|restart} instance
    

    NOTE

    The service name for the Directory Server process on Red Hat Enterprise Linux is dirsrv.

    Solaris uses /etc/init.d:

    /etc/init.d/dirsrv {start|stop|restart} instance
    

The Directory Server instance name can be specific in both the start|stop|restart-slapd and system scripts. If an instance name is not given, the start or stop operation applies to all instances on the machine.

1.3.3. Starting and Stopping Administration Server

There are two ways to start, stop, or restart the Administration Server:

  • There are scripts in the /usr/sbin directory.

    /usr/sbin/start|stop|restart-ds-admin
    
  • The Administration Server service can also be stopped and started using system tools on Red Hat Enterprise Linux and Solaris. For example, on Red Hat Enterprise Linux, the command is service:

    service dirsrv-admin {start|stop|restart}
    

    NOTE

    The service name for the Administration Server process on Red Hat Enterprise Linux is dirsrv-admin.

    On Solaris, the service is init.d:

    /etc/init.d/dirsrv-admin {start|stop|restart}
    

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.