This is an example showing how to use daemon.py to experiment with systemd_watchdog

To install:
systemctl --user link $(pwd)/systemd-watchdog-example.service
systemctl --user daemon-reload  # any time you modify systemd-watchdog-example.service or restart StartLimit timers

To start:
systemctl --user start systemd-watchdog-example.service

To check / view logs:
systemctl --user status systemd-watchdog-example.service  # shows status() calls
journalctl --user -eu systemd-watchdog-example  # Shows failures, etc. - e.g.: systemd-watchdog-example.service: Watchdog timeout (limit 15s)!

To stop:
systemctl --user stop systemd-watchdog-example.service

Things to try:
 - Play with daemon.py!
 - Change the service file and remove the watchdog requirements or change the timeout
 - Uncomment the notify_error() call
