task
QNX SDP8.0PLMS User's GuideAPIConfigurationDeveloper
Format
task "task_name" {
set of definitions and/or functions
}
Description
A task contains definitions and functions to be executed for the component. You define the order in which the functions in the task are executed. A component can have more than one task.
The start_sequence and stop_sequence define what
tasks to execute when a start or stop action is given.
The following tasks are reserved by PLMS:
- main
- Similar to user-defined tasks, except that PLMS monitors the health of a process spawned by the main task.
- stop
- Specifies the parameters used for stopping the component.
- recovery
- Specifies the parameters for recovering an abnormally terminated process.
- watchdog
- Specifies the parameters for monitoring a component’s heartbeat functionality.
- DSS
- Invokes system DSS (sysmgr_reboot()).
Multiplicity
Zero or more instances.
Constraints
The contents can be in any order. Empty task blocks are valid tasks.
Example
component "comp_4" {
task "main" {
command = "/data/home/root/ptest_exec"
args = "-n comp4_main"
exec()
waitfor_delay(1000)
}
}
Page updated:
