#include <config.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/types.h>
#include <linux/watchdog.h>
#include <sys/reboot.h>
#include <corosync/corotypes.h>
#include <corosync/corodefs.h>
#include <corosync/coroapi.h>
#include <corosync/list.h>
#include <corosync/logsys.h>
#include <corosync/icmap.h>
#include "fsm.h"
#include "service.h"
Go to the source code of this file.
Definition at line 84 of file wd.c.
#define WD_DEFAULT_TIMEOUT_SEC 6 |
Definition at line 83 of file wd.c.
Definition at line 86 of file wd.c.
#define WD_MIN_TIMEOUT_MS 500 |
Definition at line 85 of file wd.c.
Enumerator |
---|
WD_E_FAILURE |
|
WD_E_CONFIG_CHANGED |
|
Definition at line 125 of file wd.c.
Enumerator |
---|
WD_S_RUNNING |
|
WD_S_FAILED |
|
WD_S_STOPPED |
|
Definition at line 119 of file wd.c.
Enumerator |
---|
WD_RESOURCE_GOOD |
|
WD_RESOURCE_FAILED |
|
WD_RESOURCE_STATE_UNKNOWN |
|
WD_RESOURCE_NOT_MONITORED |
|
Definition at line 54 of file wd.c.
LOGSYS_DECLARE_SUBSYS |
( |
"WD" |
| ) |
|
Definition at line 145 of file wd.c.
const char* wd_config_changed_str = "config_changed" |
Definition at line 134 of file wd.c.
const char* wd_failed_str = "failed" |
Definition at line 131 of file wd.c.
const char* wd_failure_str = "failure" |
Definition at line 132 of file wd.c.
Initial value:
Definition at line 136 of file wd.c.
const char* wd_running_str = "running" |
Definition at line 130 of file wd.c.
Initial value:= {
.name = "corosync watchdog service",
.priority = 1,
.private_data_size = 0,
.lib_init_fn = NULL,
.lib_exit_fn = NULL,
.lib_engine = NULL,
.lib_engine_count = 0,
.exec_engine = NULL,
.exec_engine_count = 0,
.confchg_fn = NULL,
.exec_init_fn = wd_exec_init_fn,
.exec_exit_fn = wd_exec_exit_fn,
.exec_dump_fn = NULL
}
Definition at line 93 of file wd.c.
const char* wd_stopped_str = "stopped" |
Definition at line 133 of file wd.c.