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 add 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 tool bar.
- Select 'Service' from Resource Type lists and click 'Next' button. When add a resource from the Service resource type name, this step will be skipped.
- Enter the 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 '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.
(ex: Change the Start Type from 'Manual' to 'Auto'. Change the Status value from 'Stopped' to 'Started'.)
[Figure] Delete resource view
State
The following table explains the state of service resource.
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 | 지정된 프로세스가 강제종료될 때까지의 타임아웃을 나타냅니다. | 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.