# /etc/kuwatcher/conf.d/auto-check-rysnc-timeout
#
# ::copy::
# ::maintainer::
#
# ::do_not_edit::
#
# every 5 min; kill any rsync running more than defined timeout (in secs)
#
# kusa-db: backup-server.rsync_timeout
#
[check.rsync-timeout]
  savestate	false
  interval	300
  test		PS_TIMELIMIT $TEMPDIR/rsync-timeout.pids ::backup-server.rsync_timeout:: rsync
  action_fail	SAFEKILL `cat $TEMPDIR/rsync-timeout.pids`
