eive-obsw/watchdog/watchdogConf.h.in

25 lines
687 B
C
Raw Normal View History

2021-07-29 11:35:20 +02:00
#include <cstdint>
2021-07-29 16:31:04 +02:00
#include <string>
2021-07-29 11:35:20 +02:00
#define WATCHDOG_VERBOSE_LEVEL 1
/**
* This flag instructs the watchdog to create a special file in /tmp if the OBSW is running
* or to delete it if it is not running
*/
#define WATCHDOG_CREATE_FILE_IF_RUNNING 1
namespace watchdog {
2021-07-29 17:21:27 +02:00
static constexpr int TIMEOUT_MS = 5 * 1000;
2021-07-29 11:59:32 +02:00
const std::string FIFO_NAME = "/tmp/watchdog-pipe";
2021-07-29 11:35:20 +02:00
const std::string RUNNING_FILE_NAME = "/tmp/obsw-running";
2021-07-29 16:31:04 +02:00
// Suspend watchdog operations temporarily
static constexpr char SUSPEND_CHAR = 's';
// Resume watchdog operations
static constexpr char RESTART_CHAR = 'b';
// Causes the watchdog to close down
static constexpr char CANCEL_CHAR = 'c';
2021-07-29 11:35:20 +02:00
}