#!/bin/bash

## Copyright (C) 2012 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

source /usr/libexec/helper-scripts/light_sleep.bsh

systemd-notify --pid="$$" --ready

while true; do
   echo "$0: INFO: start."
   systemd-notify --pid="$$" WATCHDOG=1

   /usr/libexec/systemcheck/canary

   systemd-notify --pid="$$" WATCHDOG=1
   echo "$0: INFO: end."

   ## 1 hour
   light_sleep 3600
done
