Configuring autostart for a directory server instance on Windows

Use the Services window to configure autostart of a directory server instance on Windows™.

Before you begin

To configure a directory server instance for starting automatically after you start the operating system, your computer must meet the following requirements:
  • The computer must contain a directory server instance that can be run in normal mode.

About this task

On Windows, you can start a directory server, the idsslapd process, from the Services window or with the idsslapd command. For a directory server instance with DB2® database, you must set the service that is associated with directory server depend on the DB2 instance service. For a directory server instance with DB2 database, DB2 must start before the idsslapd process can start. If you do not set the dependency and configure the Startup Type field to Automatic for the service that is associated with the server, error might occur when you restart the computer. For a proxy server instance, you do not require to configure the dependency on the service that is associated with the DB2 instance.

For a proxy server instance, use the Configuring autostart for a directory server instance on Windows, Configuring autostart for a directory server instance on Windows, Configuring autostart for a directory server instance on Windows, Configuring autostart for a directory server instance on Windows, and Configuring autostart for a directory server instance on Windows steps.

Procedure

  1. Log in as an administrator group member.
  2. To open the Services window, complete the following steps:
    1. Click Start > Run.
    2. In the Open field, enter services.msc.
    3. Click OK.
  3. Find the DB2 service name that is associated with your directory server instance that you want to autostart.
    The service name starts with DB2 - SDSV64DB2 -. If your DB2 instance name is DSRDBM01, the entry is DB2 - SDSV64DB2 - DSRDBM01. Double-click the service and record the value that comes after DB2 - SDSV64DB2 - in the Display name field. In the example, the value is DSRDBM01.
  4. Find the service for the directory server instance that you want to autostart.
    The service name starts with IBM® Verify Directory Instance 11.0.1. If your instance name is dsrdbm01, the entry is IBM Verify Directory Instance 11.0.1 - dsrdbm01. Double-click the service and record the value that comes after IBM Verify Directory Instance 11.0.1 - in the Display name field. In the example, for the instance, dsrdbm01, the value is idsslapd-dsrdbm01.
  5. In the IBM Verify Directory Instance 11.0.1 - dsrdbm01 Properties window, from the Startup type list select Automatic.
  6. Click OK.
  7. To close the Services window, click File > Exit.
  8. To open the Windows registry, complete the following steps:
    1. Click Start > Run.
    2. In the Open field, enter regedit.
    3. Click OK.
  9. On the left navigation pane, go to My Computer > HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services.
  10. Find the service that is associated with your directory server instance.
    In the example, it is idsslapd-dsrdbm01.
  11. Click the service that is associated with your instance.
  12. On the right pane of the window, double-click the DependOnService attribute.
  13. In the Edit Multi-String window, add the DB2 service name that is associated with the instance under LanmanServer.
    In the example, it is DSRDBM01.
  14. Click OK.
    It creates a dependency on the DB2 service.
  15. To close the Windows registry, click File > Exit.

Results

When you restart the computer, the directory server instance starts automatically.