Managing the HAF Application Service
On offload nodes, HAF can start, stop, forcibly stop, restart, and query the status of the HAF application service.
The command is as follows:
- To start the application service for the first time, run the --start -s <service_name> command.
- After the configuration is complete, run /home/omm/haf-install/haf-target/tools/haf-tool service --restart -s <service_name> for the configuration to take effect.
Option |
Description |
|---|---|
--start -s <service_name> |
Starts the application service. |
--stop -s <service_name> |
Stops the application service. |
--kill -s <service_name> |
Forcibly stops the application service. |
--restart -s <service_name> |
Restarts the application service. |
--status -s <service_name> |
Queries the application service status. |
After the startup or restart command is executed, the tool invokes haf_executor to start an application service. This tool is stored in bin in the installation directory and is invoked by haf_daemon. The internal invoking command is as follows:
./haf_executor <tag>
Option |
Description |
Mandatory |
|---|---|---|
tag |
Tag of an application service, which matches a service_tag field in haf_executor_list.info. |
Yes |
haf_executor is an internal tool of the software. You are not advised to invoke it independently.
- Select Command Execution and click Add a Task.
- Edit the task content and click Save.
Parameter
Description
Task Name
Managing the HAF application service
Task Description
Starting/Stopping/Restarting/Checking the status of the HAF application service
Run Directory
/
Run Command
/home/omm/haf-install/haf-target/tools/haf-tool service --start/--stop/--restart/--kill/--status -s service_name
