7.7 Service.
This is managed Windows services.
Window Services is a process that is managed by SCM(Service Control Management) of Windows O.S. The service managed by SCM includes kernel driver but those are not managed by MCCS agent.
Commonly, it can be used when dealing with package software like MS-SQL or Oracle DB.
Most of the setting values of Window Services are defined by the user are maintained except two values when these are managed by MCCS windows service agent.
Startup of service will be changed manually and will be changed not to do any action after failing from recovery.This delegates service start/stop/restart to MCCS.Â
Table of Contents
Adding
Add the Windows service resource to a group.
- When adding a resource from a group name, select a group → right click → "Add Resource". Or select "Edit(E)" from the main menu bar → select "Add Resource". Or select "Add Resource" icon from the toolbar.
- Select "Service" from Resource Type lists and click the "Next"Â button. When add a resource from the Service resource type name, this step will be skipped
- Enter the service resource name.
- Enter the service name and it will automatically search and list up proper service name, and then select the service to be managed.
[Figure] Adding service resource - Click the "Finish" button to add the basic application resource.Â
Deleting
Select "Resource type" → right click → delete resource.
After deleting the service resource, service start type isn't reverted to the default value previous to adding as resource of MCCS.
After deleting it. go to the service tab (services.msc) and reset the setting.
(e.g. Change the Start Type from 'Manual' to 'Auto'. Change the Status value from 'Stopped' to 'Started'.)
State
The following table explains the state of service resource.
Agent of Windows Service: Manages directly services registered on the Windows SCM(Service Control Manager).
State | Agent command | Description | Note |
---|---|---|---|
Online Windows service is running properly. | Offline | MCCS stops windows service. It has the same results as the following command line from CLI. | |
Monitoring | It monitors status of Windows service. It has the same results as the following command line for CLI. | ||
Offline Windows service is stopped | Online | MCCS starts Windows service. It has the same results as the following command. | |
Monitoring | It monitors status of Windows service. It has the same results as the following command line for CLI. | ||
Fault Windows service is not running properly. | Online | MCCS starts Windows service. It has the same results as the following command. C:\> SC START SERVICE_NAME EX) SC START SQLSERVER | |
Offline | MCCS stops windows service. It has the same results as the following command line from CLI. C:\> SC STOP SERVICE_NAME EX) SC STOP SQLSERVER |
Attribute
Show the specified attribute of process resource.
Attribute | Description | Type | Default | Edit | Note |
ServiceName | It is a name of the window service managed by MCCS. | STRING | X | ||
Arguments | It is the program argument. \r\nMore than one factor must use at least one space as an identifier. When spaces are included in the factor, double quotation marks(" ") must be used. \r\nThe factor may not be longer than 80 characters. | STRING | O | ||
KillProcessName | Process should be killed at offline-timeout | STRING | O | ||
KillProcessTimeout | Indicates time out until the designated process is forced to be closed. | INTEGER | 10 | O |
Specified attribute values are normally entered when add the resource, This value can be edited or viewed through 'Specified Attribute' table in the Resource Attributes tab on the detailed information panel.
Auto-start of relevant service stops if registering a resource of Windows service.
MCCS has function to limit input values against user's input field, and it provides function detects automatically data which is input wrong by user's mistake.