in pystemd/daemon.pyx [0:0]
def watchdog_enabled(int unset_environment=0):
"""
returns 0 if watchdog is not enabled, and returns the number of usec between
keep-alive notification messages that the service manager expects.
"""
cdef:
int result
uint64_t usec
result = dbusc.sd_watchdog_enabled(unset_environment, &usec)
if result < 0:
raise PystemdDaemonError('Fail to get watchdog information')
if result > 0:
return usec
return 0