Included in: | autoprocd.c |
interpreter.c | |
process.c | |
process_control.c | |
setup.c |
#define PROCESS_LEN_TAG 64
#define PROCESS_LEN_COMMAND 256
#define PROCESS_LEN_ARGUMENTS 256
#define PROCESS_LEN_WDIR 256
#define PROCESS_LEN_DESCRIPTION 256
enum RequiredState | |
{ | |
PROCESS_ACTIVE; | |
PROCESS_STANDBY; | |
} |
enum RestartPolicy | |
{ | |
PROCESS_RESTART_YES; | |
PROCESS_RESTART_NO; | |
PROCESS_RESTART_ALL; | |
} |
enum ProcessState | |
{ | |
PROCESS_STATE_OFF; | |
PROCESS_STATE_ON; | |
PROCESS_STATE_ERR; | |
PROCESS_STATE_WAIT; | |
} |
struct | |
{ | |
int pid; | |
char tag[64]; | |
char state; | |
double cpuload; | |
char init_command[256]; | |
char command[256]; | |
char arguments[256]; | |
int init_on_restart; | |
int required_state; | |
unsigned int max_subsequent_failures; | |
unsigned int cputime; | |
char wdir[256]; | |
char description[256]; | |
time_t start_time; | |
time_t stop_time; | |
int restart_policy; | |
float delay; | |
float term_delay; | |
uid_t uid; | |
gid_t gid; | |
unsigned int n_starts; | |
unsigned int n_truncations; | |
unsigned int n_failures; | |
unsigned int n_subsequent_failures; | |
int failure_timer; | |
Array* environment; | |
int inputPipe[2]; | |
int outputPipe[2]; | |
} |