Crinit -- Configurable Rootfs Init
crinitTask_t Struct Reference

#include <task.h>

Collaboration diagram for crinitTask_t:
Collaboration graph

Public Attributes

char * name
 Name of the task, corresponds to NAME in the config file. More...
 
crinitTaskCmd_tcmds
 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_tdeps
 Dynamic array of dependencies, corresponds to DEPENDS in the config file. More...
 
size_t depsSize
 Number of dependencies in deps array. More...
 
crinitTaskPrv_tprv
 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_tredirs
 IO redirection descriptions. More...
 
size_t redirsSize
 Number of IO redirections. More...
 
int maxRetries
 
int failCount
 

Detailed Description

Type to store a single task.

Member Data Documentation

◆ cmds

crinitTaskCmd_t* crinitTask_t::cmds

Dynamic array of commands, corresponds to COMMAND[N] in the config file.

◆ cmdsSize

size_t crinitTask_t::cmdsSize

Number of commands in cmds array.

◆ deps

crinitTaskDep_t* crinitTask_t::deps

Dynamic array of dependencies, corresponds to DEPENDS in the config file.

◆ depsSize

size_t crinitTask_t::depsSize

Number of dependencies in deps array.

◆ elosFilters

crinitEnvSet_t crinitTask_t::elosFilters

Elos filter definitions valid for use in dependencies of this task.

◆ failCount

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).

◆ maxRetries

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).

◆ name

char* crinitTask_t::name

Name of the task, corresponds to NAME in the config file.

◆ opts

crinitTaskOpts_t crinitTask_t::opts

Task options.

◆ pid

pid_t crinitTask_t::pid

PID of currently running process subordinate to the task, if any.

◆ prv

crinitTaskPrv_t* crinitTask_t::prv

Dynamic array of provided features, corresponds to PROVIDES in the config file.

◆ prvSize

size_t crinitTask_t::prvSize

Number of provided features in prv array.

◆ redirs

crinitIoRedir_t* crinitTask_t::redirs

IO redirection descriptions.

◆ redirsSize

size_t crinitTask_t::redirsSize

Number of IO redirections.

◆ state

crinitTaskState_t crinitTask_t::state

Task state.

◆ taskEnv

crinitEnvSet_t crinitTask_t::taskEnv

Environment variables valid for each COMMAND in this task.


The documentation for this struct was generated from the following file: