#include "common.h"
#include <systemd/sd-daemon.h>
+#include <stdlib.h>
/* In case of watchdog based on systemd sd_notify,
* runtime registration does not support.
- * It will be supported by resrouced watchdog in the future */
-
+ * Thus, just check whether the watchdog is enabled or not*/
int _aw_register(unsigned int timeout)
{
- return -ENOTSUP;
+
+ if ( sd_watchdog_enabled(0, NULL) )
+ return 0;
+ else
+ return -1;
}
-/* Under development - Ask to Mr.Hwang for the progress */
+/* NOT Support for systemd backend */
int _aw_control(aw_op_e op, void *data)
{
return -ENOTSUP;