Configuring the SSL client (for UNIX)  Chapter 6: Using Service Name Redirection

Chapter 5: Setting up SSL and a Windows Service

Installing a DirectConnect server as a Windows service

DirectConnect no longer automatically creates the server as a Windows service. However, you can run a DirectConnect server as a Windows service. The following describes how to register, configure, start, stop, and remove DirectConnect as a Windows service.

Register DirectConnect as a Windows service

StepsTo register DirectConnect

  1. Execute the AddWinService.bat located in the DC-12_6\bin directory using your name for the “Windows service name” and the name of the DirectConnect server:

    AddWinService <Windows_service_name> <server_name>
    

    For example:

    AddWinService dcservice dcserver
    

Configure DirectConnect as a Windows service

StepsTo configure DirectConnect to run as a Windows service

  1. Install DirectConnect on your local hard drive.

    WARNING! Do not install DirectConnect under a clear case filesystem, or remotely, or in a shared file system, it may cause DirectConnect to fail during file I/O.

  2. Turn off all server tracing and logging to the screen (console) by accessing the “Logging’ and “Tracing” configuration properties.

  3. Perform DirectConnect licensing as described in Chapter 2, “Sybase Software Asset Management (SySAM),” of the installation guide for your platform.

  4. To ensure the environment created by DC_SYBASE.bat is also your system environment. Set SYBASE, SYBASE_ECON, SYBASE_SYSAM, and PATH accordingly.

  5. Verify configuration by starting the DirectConnect sever using DCStart.bat at the command line. Verify that only the copyright notice is written to the screen (console). No licensing dialog should be displayed.

Start DirectConnect as a Windows service

StepsTo start DirectConnect as a Windows service

  1. Open the Windows Services control panel.

  2. Right click on the DirectConnect Windows service.

  3. Select start.

Stop DirectConnect as a Windows service

StepsTo stop DirectConnect as a Windows service

  1. Open the Windows Services control panel.

  2. Right click on the DirectConnect Windows service.

  3. Select stop.

Remove DirectConnect as a Windows service

StepsTo remove DirectConnect as a Windows service

  1. Using the Windows Services control panel, stop the DirectConnect service.

  2. Execute the RemoveWinService.bat located in the DC-12_6\bin directory using the name of the DirectConnect Windows service. Enter the following:

     RemoveWinService <Windows_service_name>
    




Copyright © 2005. Sybase Inc. All rights reserved. Chapter 6: Using Service Name Redirection

View this book as PDF