ID: kb000034.htm |
||||
Question:How can dependencies be set in the Movicon Service? |
||||
Answer:The Movicon service dependency configuration is executed like all other Windows services. Above all, the dependency configuration permits you to establish a list of system components or other services that Movicon as service will depend upon when put into execution. The operating system will not startup Movicon as Service until all the system components or services it depends on have been started up first. When starting up a Movicon project as service involving the use of programs or communication cards managed by other system services (i.e. SQL Server, Applicom cards, etc.)for example, it is essential that you set the list of these components in the Movicon Service depend-on list so that they can to be started up before Movicon is. In order to set the desired dependencies you will need to add the specific dependency services in the appropriate Windows registry key. Before doing this you must first install Movicon as Windows Service. This is done by clicking on the "Install this project as Windows service" command which is made available by right clicking on the project name within the Movicon "Project Explorer" window:
Once the project has been installed as service, 'Service' within brackets will appear written at the side after the project name. The "MOVICON" service can also be found in the Windows Service window when opened from the Control Panel-Administrative Tools-Services. The dependency configuration of the service just installed requires you to use the Windows configuration registry editor. This tool can be launched by entering the "RegEdit" command from the Windows command line.
Below are step-by-step instructions on how to insert the "RPC (Remote Procedure Call)" and "SQL Server (SQL2008)" components as Movicon service dependencies. These two components have been used as examples only and can be substituted with any other operating system component.
However, this may not be the case for all the services listed and therefore always check whether the "Service Name" field coincides with that one actually used by the operating system by using the appropriate Windows command to view the list of tasks currently run with their relating service listed in a separate column. This command is called "TaskList /SVC" and can be executed from the Windows dos command window (execute the cmd command to open the dos window). When executing the "TaskList /SVC" command a list showing all the tasks being run in the computer will display indicating also the name of the service being used. The name which represents the service is highlighted in red in the image below.
|
||||
References:
|