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.
To register DirectConnect
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
To configure DirectConnect to run as a Windows service
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.
Turn off all server tracing and logging to the screen (console) by accessing the “Logging’ and “Tracing” configuration properties.
Perform DirectConnect licensing as described in Chapter 2, “Sybase Software Asset Management (SySAM),” of the installation guide for your platform.
To ensure the environment created by DC_SYBASE.bat is also your system environment. Set SYBASE, SYBASE_ECON, SYBASE_SYSAM, and PATH accordingly.
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.
To start DirectConnect as a Windows service
Open the Windows Services control panel.
Right click on the DirectConnect Windows service.
Select start.
To stop DirectConnect as a Windows service
Open the Windows Services control panel.
Right click on the DirectConnect Windows service.
Select stop.
To remove DirectConnect as a Windows service
Using the Windows Services control panel, stop the DirectConnect service.
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. |