watchdog handling finished

This commit is contained in:
2021-07-29 16:31:04 +02:00
parent 983ce045a9
commit ff86c8af73
8 changed files with 179 additions and 45 deletions

View File

@ -1,4 +1,5 @@
#include <cstdint>
#include <string>
#define WATCHDOG_VERBOSE_LEVEL 1
/**
@ -13,4 +14,11 @@ static constexpr int TIMEOUT_MS = 10 * 1000;
const std::string FIFO_NAME = "/tmp/watchdog-pipe";
const std::string RUNNING_FILE_NAME = "/tmp/obsw-running";
// 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';
}