MobiLink Synchronization User's Guide
Running MobiLink Outside the Current Session
Running the Windows MobiLink server as a service
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)
In Sybase Central, click the server in the left pane, and then open the Services tab in the right pane.
Double-click Add Service.
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)
In Sybase Central, click the server in the left pane, and then open the Services tab in the right pane.
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
In Sybase Central, click the server in the left pane, and then open the Services tab in the right pane.
In the right pane, right-click the service you want to change and choose Properties from the popup menu.
Alter the parameters as needed on the tabs of the Service property sheet.
Click OK when finished.
Changes to a service configuration take effect the next time the service is started.
The following options govern startup behavior for MobiLink services. You can set them on the General tab of the service property sheet.
Automatic If you choose Automatic, the service starts whenever the Windows operating system starts. This setting is appropriate for database servers and other applications running all the time.
Manual If you choose Manual, the service starts only when a user with Administrator permissions starts it. For information about Administrator permissions, see your Windows documentation.
Disabled If you choose Disabled, the service will not start.
The startup option is applied the next time Windows is started.
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.
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:
If a service runs under LocalSystem, and Allow Service to Interact with Desktop is checked in the service property sheet, an icon appears on the desktop of every user logged in to Windows NT/2000/XP on the computer running the service. Consequently, any user can open the application window and stop the program running as a service.
If a service runs under LocalSystem, and Allow Service to Interact with Desktop is unchecked in the service property sheet, no icon appears on the desktop for any user. Only users with permissions to change the state of services can stop the service.
If a service runs under another account, no icon appears on the desktop. Only users with permissions to change the state of services can stop the service.
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.
To start, stop, or pause a service
In Sybase Central, click the server in the left pane, and then open the Services tab in the right pane.
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.