# $Header: /global/src/etc/cron.d/RCS/cl-isidle-halt,v 1.5 2025/01/08 09:33:29 mas90 Exp $
# Runs isidle at boot time and at intervals (it ensures one instance)
# Actually halt the machine if idle.
# ********* Run in "test" mode -- later add the "-halt"
MAILTO=unix-gardening+cronisidlehalt-tag@cl.cam.ac.uk
@reboot      root test -x /usr/bin/cl-isidle && /usr/bin/cl-isidle --email unix-gardening+rebootresisidlehalt-tag@cl.cam.ac.uk --halt --cron
23 */3 * * * root test -x /usr/bin/cl-isidle && /usr/bin/cl-isidle --email unix-gardening+hourlyresisidlehalt-tag@cl.cam.ac.uk --halt --cron
