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

To add DirectConnect as a Windows service, invoke the ServiceWrapper.exe that is available in the ServiceWrapper directory. This is available on the DI Suite installation media or in the directory where you have extracted the Sybase Data Integration Suite 1.1 Core download file. For more information on the Sybase Data Integration Suite 1.1 Core download file, see “Installing from the SPDC”.

Copy 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

Use the ServiceWrapper.exe to remove the service using this command, where service_name is the name of the service:

%SYBASE%\ServiceWrapper.exe --uninstall service_name