From 71a5b964f50e58216975cc2fd43895201cf0102b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 8 Jan 2014 17:04:37 +0100 Subject: [smartctl] Add cronjob --- remote/modules/smartctl/data/etc/cron.d/openslx-smartctl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 remote/modules/smartctl/data/etc/cron.d/openslx-smartctl (limited to 'remote/modules/smartctl') diff --git a/remote/modules/smartctl/data/etc/cron.d/openslx-smartctl b/remote/modules/smartctl/data/etc/cron.d/openslx-smartctl new file mode 100644 index 00000000..42a251da --- /dev/null +++ b/remote/modules/smartctl/data/etc/cron.d/openslx-smartctl @@ -0,0 +1,8 @@ +# Check smart values at night. If the machine gets shut down at night, +# this will not trigger, but we check it once on boot anyways. + +SHELL=/bin/ash +PATH=/usr/sbin:/usr/bin:/sbin:/bin:/opt/openslx/usr/sbin:/opt/openslx/usr/bin:/opt/openslx/sbin:/opt/openslx/bin + +4 4 * * * root /opt/openslx/scripts/systemd-smartctl + -- cgit v1.2.3-55-g7522