Contents Index Running the Windows MobiLink server as a service Running more than one service at a time

MobiLink Synchronization User's Guide
  Running MobiLink Outside the Current Session
    Running the Windows MobiLink server as a service

Adding, modifying, and removing services


The service icons in Sybase Central display the current state of each service using a traffic light icon that displays running, paused, or stopped.

To add a new service (Sybase Central)

  1. In Sybase Central, click the server in the left pane, and then open the Services tab in the right pane.

  2. Double-click Add Service.

  3. Follow the instructions in the wizard.

You can also use the dbsvc utility to create the service. For more information, see Managing services using the dbsvc command-line utility.

To remove a service (Sybase Central)

  1. In Sybase Central, click the server in the left pane, and then open the Services tab in the right pane.

  2. In the right pane, right-click the icon of the service you want to remove and choose Delete from the popup menu.

To change the parameters for a service

  1. In Sybase Central, click the server in the left pane, and then open the Services tab in the right pane.

  2. In the right pane, right-click the service you want to change and choose Properties from the popup menu.

  3. Alter the parameters as needed on the tabs of the Service property sheet.

  4. Click OK when finished.

Changes to a service configuration take effect the next time the service is started.

Setting the startup option 

The following options govern startup behavior for MobiLink services. You can set them on the General tab of the service property sheet.

The startup option is applied the next time Windows is started.

Specifying command line options 

The Configuration tab of the service property sheet provides a text box for typing command line options for a service. Do not type the name of the program executable in this box.

For example, to start a MobiLink synchronization service with verbose logging and three worker threads, type the following in the Parameters box:

-c "dsn=ASA 9.0 Sample;uid=DBA;pwd=SQL"
-vc
-w 3

The command line options for a service are the same as those for the executable. For a full description of the command line options for MobiLink, see MobiLink synchronization server.

Setting account options 

You can choose which account the service runs under. Most services run under the special LocalSystem account, which is the default option for services. You can set the service to log on under another account by opening the Account tab on the Service property sheet, and typing the account information.

If you choose to run the service under an account other than LocalSystem, that account must have the "log on as a service" privilege. This can be granted from the Windows User Manager application, under Advanced Privileges.

Whether or not an icon for the service appears on the taskbar or desktop depends on the account you select, and whether Allow Service to Interact with Desktop is checked, as follows:

Changing the executable file 

To change the program executable file associated with a service in Sybase Central, click the Configuration tab on the Service property sheet and type the new path and file name in the File Name box.

If you move an executable file to a new directory, you must modify this entry.

Starting, stopping, and pausing services 

To start, stop, or pause a service

  1. In Sybase Central, click the server in the left pane, and then open the Services tab in the right pane.

  2. Right-click the service and choose Start, Stop, or Pause from the popup menu.

    To resume a paused service, right-click the service and select Continue from the popup menu.

If you start a service, it keeps running until you stop it. Closing Sybase Central or logging off does not stop the service.

Stopping a service closes all connections to the database and stops the database server. For other applications, the program closes down.

Pausing a service prevents any further action being taken by the application. It does not shut the application down or (in the case of server services) close any client connections to the database. Most users do not need to pause their services.


Contents Index Running the Windows MobiLink server as a service Running more than one service at a time