Show Table of Contents
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:
- use the command line to manage the service. See Section 1.4.1, “Starting and Stopping a Directory Server Instance Using the Command Line”.
- create a password file. See Section 9.4.1.5, “Creating a Password File for Directory Server”.
To start, stop, or restart a Directory Server instance:
- Start the Directory Server Console and log in using the
cn=Directory Manager
user name.For details, see Section E.2.2, “Opening the Administration Server Console”. - On the Servers and Applications tab, navigate to → → → , and click .
- On the Tasks tab, click the task you want to execute:
- Clickto confirm.
After the task finished, the console displays a message if the operation was successful or failed.