mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
watchdog: Enable --with-watchdog[=DEV] and improve log messages
This patch changes the configure option to enable the built-in watchdog from --enable-watchdog to --with-watchdog[=DEV]. This is the convention for features that take arguments. Also, improve log messages to aid debugging when finit-watchdogd does not start properly. This means flushing logs to syslogd with closelog() Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
38f7d24a80
commit
06e456384c
3 files changed
+28
-18
No files matched your search
@@ -23,7 +23,9 @@
|
||||
|
||||
#include "config.h" /* Generated by configure script */
|
||||
|
||||
#ifndef WDT_DEVNODE
|
||||
#define WDT_DEVNODE "/dev/watchdog"
|
||||
#endif
|
||||
#define WDT_TIMEOUT 30
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user