7-7 Service
This is managed Linux services. Linux service is a process that is managed by the system service manager (chkconfig) such as cron or iptables.
Several settings are the values defined by a user. But once it is registered in the MCCS, the two values are changed.
Service start type is changed manually.(RunLevel 3, 4, 5 OFF) It intends to manage starting and stopping in MCCS.
Even if you delete the resource, RunLevel is not reverted to the default value previous to adding as resource of MCCS.
Table of Contents
Adding
Add the service resource to a group.
To monitor status of a service, use a service agent.
It indicates the service is on running if results from monitoring is "0", while "3" means stop of the service.
Results from monitoring may be wrong if the returned value of the service's script has not been the same as default one.
- 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 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.
The service added as resource in MCCS will be automatically switched to "Manual Start" of service start type.
After deleting the resource, the user needs to change the RunLevel to revert to default value.
State
The following table explains the status switching of the MCCS resource caused by a user's command and the status.
Service agent: Manages the Linux services. In general, service is a process operated by daemon.
State | Agent command | Description | Note |
---|---|---|---|
Online Service is running properly. | Offline | MCCS stops service. | |
Monitoring | It monitors status of service. If the service is running properly, the '0' value is returned. If it is stopped, '3' value is returned. If the service script's return value is different to the default setting, the result is untrustable. | ||
Offline Service is stopped. | Online | MCCS starts service. | |
Monitoring | It monitors status of service. If the service is running properly, the '0' value is returned. If it is stopped, '3' value is returned. If the service script's return value is different to the default setting, the result is untrustable. | ||
Fault Service is not running properly. | Online | MCCS starts service. | |
Offline | MCCS stops service. |
Attribute
Show the specified attribute of process resource.
Attribute | Description | Type | Default | Edit | Note |
ServiceName | It is a name of the Linux 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 |
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.
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.