Crinit -- Configurable Rootfs Init
|
#include <task.h>
Public Attributes | |
char * | name |
Name of the task, corresponds to NAME in the config file. More... | |
crinitTaskCmd_t * | cmds |
Dynamic array of commands, corresponds to COMMAND[N] in the config file. More... | |
size_t | cmdsSize |
Number of commands in cmds array. More... | |
crinitEnvSet_t | taskEnv |
Environment variables valid for each COMMAND in this task. More... | |
crinitEnvSet_t | elosFilters |
Elos filter definitions valid for use in dependencies of this task. More... | |
crinitTaskDep_t * | deps |
Dynamic array of dependencies, corresponds to DEPENDS in the config file. More... | |
size_t | depsSize |
Number of dependencies in deps array. More... | |
crinitTaskPrv_t * | prv |
Dynamic array of provided features, corresponds to PROVIDES in the config file. More... | |
size_t | prvSize |
Number of provided features in prv array. More... | |
crinitTaskOpts_t | opts |
Task options. More... | |
crinitTaskState_t | state |
Task state. More... | |
pid_t | pid |
PID of currently running process subordinate to the task, if any. More... | |
crinitIoRedir_t * | redirs |
IO redirection descriptions. More... | |
size_t | redirsSize |
Number of IO redirections. More... | |
int | maxRetries |
int | failCount |
Type to store a single task.
crinitTaskCmd_t* crinitTask_t::cmds |
Dynamic array of commands, corresponds to COMMAND[N] in the config file.
size_t crinitTask_t::cmdsSize |
Number of commands in cmds array.
crinitTaskDep_t* crinitTask_t::deps |
Dynamic array of dependencies, corresponds to DEPENDS in the config file.
size_t crinitTask_t::depsSize |
Number of dependencies in deps array.
crinitEnvSet_t crinitTask_t::elosFilters |
Elos filter definitions valid for use in dependencies of this task.
int crinitTask_t::failCount |
Counts consecutive respawns after failure (see crinitTaskOpts_t::maxRetries). Resets on a successful completion (i.e. all COMMANDs in the task have returned 0).
int crinitTask_t::maxRetries |
If crinitTask_t::opts includes CRINIT_TASK_OPT_RESPAWN, this variable specifies a maximum consecutive number of respawns after failure (default: -1 for infinite).
char* crinitTask_t::name |
Name of the task, corresponds to NAME in the config file.
crinitTaskOpts_t crinitTask_t::opts |
Task options.
pid_t crinitTask_t::pid |
PID of currently running process subordinate to the task, if any.
crinitTaskPrv_t* crinitTask_t::prv |
Dynamic array of provided features, corresponds to PROVIDES in the config file.
size_t crinitTask_t::prvSize |
Number of provided features in prv array.
crinitIoRedir_t* crinitTask_t::redirs |
IO redirection descriptions.
size_t crinitTask_t::redirsSize |
Number of IO redirections.
crinitTaskState_t crinitTask_t::state |
Task state.
crinitEnvSet_t crinitTask_t::taskEnv |
Environment variables valid for each COMMAND in this task.