added eive-watchdog

This commit is contained in:
2021-07-29 11:35:20 +02:00
parent 190590e1b5
commit 59bcf6cec2
8 changed files with 283 additions and 28 deletions

View File

@ -0,0 +1,16 @@
#include <cstdint>
#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 {
static constexpr int TIMEOUT_MS = 10 * 1000;
const std::string FIFO_NAME = "/tmp/obsw-watchdog";
const std::string RUNNING_FILE_NAME = "/tmp/obsw-running";
}