1.4. Starting and Stopping a Directory Server Instance

1.4.1. Starting and Stopping a Directory Server Instance Using the Command Line

Use the systemctl utility to start, stop, or restart an instance:
  • To start an instance:
    # systemctl start dirsrv@instance_name
  • To stop an instance:
    # systemctl stop dirsrv@instance_name
  • To restart an instance:
    # systemctl restart dirsrv@instance_name
Optionally, you can enable Directory Server instances to automatically start when the system boots:
  • for a single instance:
    # systemctl enable dirsrv@instance_name
  • for all instances on a server:
    # systemctl enable dirsrv.target
For further details, see the Managing System Services section in the Red Hat System Administrator's Guide.

1.4.2. Starting and Stopping a Directory Server Instance Using the Console

Besides the command line, you can use the Directory Server Console to start, stop, or restart instances.

Important

If you run SELinux in enforcing mode, you cannot use the Console to start or stop an instance. To work around the problem, use the command line to manage the services. See Section 1.4, “Starting and Stopping a Directory Server Instance”.

Important

If you enabled TLS encryption for an instance, Directory Server prompts for the TLS certificate password when the instance starts. The Directory Server Console does not support displaying this password prompt in the GUI. To work around the problem:
To start, stop, or restart a Directory Server instance:
  1. Start the Directory Server Console and log in using the cn=Directory Manager user name.
  2. On the Servers and Applications tab, navigate to administration_domain_namehost_nameServer GroupDirectory Server (instance_name), and click Open.
  3. On the Tasks tab, click the task you want to execute:
  4. Click Yes to confirm.
After the task finished, the console displays a message if the operation was successful or failed.