summaryrefslogtreecommitdiffstats
path: root/core/modules/smartctl/data/etc/cron.d/openslx-smartctl
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/smartctl/data/etc/cron.d/openslx-smartctl')
-rw-r--r--core/modules/smartctl/data/etc/cron.d/openslx-smartctl8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/modules/smartctl/data/etc/cron.d/openslx-smartctl b/core/modules/smartctl/data/etc/cron.d/openslx-smartctl
new file mode 100644
index 00000000..a895e8db
--- /dev/null
+++ b/core/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/sbin:/opt/openslx/bin
+
+4 4 * * * root /opt/openslx/scripts/systemd-smartctl
+