Start a DirectConnect server as a Windows service

After you configure the DirectConnect server, Sybase recommends that you add and start DirectConnect as a Windows service. For information on configuring, starting, and stopping the DirectConnect server, see the Sybase Enterprise Connect Data Access documentation available on the SyBooks CD for Sybase Replication, or the Sybase Product Manual Web site.

Adding DirectConnect as a Windows service

You can add DirectConnect as a Windows service by invoking the ServiceWrapper.exe available in the ServiceWrapper directory. This is available on the DI Suite installation media or in the directory where you have extracted the di_core.zip file.

Copy the ServiceWrapper.exe to your installation directory (%SYBASE%) and invoke:

%SYBASE%\ServiceWrapper.exe --install service_name 
--user=DOMAIN_NAME\username --password=password installation directory\DC-12_6\bin\DCStart.bat 
-Sserver_name

where:

For example:

C:\Sybase\ServiceWrapper.exe --install Syb_DCserver 
--user=SYBASE\jdoe --password=jdpassword 
c:\Sybase\DC-12_6\bin\DCStart.bat -SDCserver

NoteYou must specify the .bat suffix for DCStart.

Starting DirectConnect as a Windows service

  1. Select Start | Settings | Control Panel | Administrative Tools | Services. The Services window opens.

  2. Select the name of the service you just installed. Right-click and select Properties. In the Properties dialog, select the Log On tab, and ensure “This Account” is selected. Verify that the user name is the same as the one you specified while adding the service.

  3. Use the Recovery tab to specify any desired actions in case the service fails.

  4. Use the General tab to provide a description of the service and to specify whether the service should start automatically or manually. Click Start to start the service.

Removing DirectConnect as a Windows service

You can use the ServiceWrapper.exe to remove the service using the following command:

%SYBASE%\ServiceWrapper.exe --uninstall service_name

where service_name is the name of the service.