82 |
#define ACTION_ALERT 1 |
#define ACTION_ALERT 1 |
83 |
#define ACTION_RESTART 2 |
#define ACTION_RESTART 2 |
84 |
#define ACTION_STOP 3 |
#define ACTION_STOP 3 |
85 |
|
#define ACTION_EXEC 4 |
86 |
|
|
87 |
#define TASK_DEVICE 0 |
#define TASK_DEVICE 0 |
88 |
#define TASK_DIRECTORY 1 |
#define TASK_DIRECTORY 1 |
337 |
uid_t uid; /**< The user id to switch to when running this Command */ |
uid_t uid; /**< The user id to switch to when running this Command */ |
338 |
int has_gid; /**< TRUE if a new gid is defined for this Command */ |
int has_gid; /**< TRUE if a new gid is defined for this Command */ |
339 |
gid_t gid; /**< The group id to switch to when running this Command */ |
gid_t gid; /**< The group id to switch to when running this Command */ |
|
} *Command_T; |
|
|
|
|
|
|
|
|
/** Defines an alien program to be execute upon alert or upon an action. */ |
|
|
typedef struct myexec { |
|
340 |
unsigned int events; /**< Events triggering this program to be executed */ |
unsigned int events; /**< Events triggering this program to be executed */ |
|
Command_T program; /**< The external program to call */ |
|
341 |
|
|
342 |
/** For internal use */ |
/** For internal use */ |
343 |
struct myexec *next; /**< next external program in chain */ |
struct mycommand *next; /**< next external program in chain */ |
344 |
} *Exec_T; |
} *Command_T; |
345 |
|
|
346 |
|
|
347 |
/** Defines filesystem device data */ |
/** Defines filesystem device data */ |
406 |
Dependant_T dependantlist; /**<Dependant service list */ |
Dependant_T dependantlist; /**<Dependant service list */ |
407 |
Timestamp_T timestamplist; /**< Timestamp check list */ |
Timestamp_T timestamplist; /**< Timestamp check list */ |
408 |
Device_T devicelist; /**< Device check list */ |
Device_T devicelist; /**< Device check list */ |
409 |
Exec_T execlist; /**< External programs to call upon an alert or action */ |
Command_T execlist; /**< External programs to call upon an action */ |
410 |
|
|
411 |
/** Runtime parameters */ |
/** Runtime parameters */ |
412 |
DeviceInfo_T devinfo; /**< Data for the device check */ |
DeviceInfo_T devinfo; /**< Data for the device check */ |