summaryrefslogtreecommitdiffstats
path: root/remote/modules
diff options
context:
space:
mode:
authorSimon Rettberg2014-01-08 17:04:37 +0100
committerSimon Rettberg2014-01-08 17:04:37 +0100
commit71a5b964f50e58216975cc2fd43895201cf0102b (patch)
tree83134da7917874207c5154eaf697b4aff17263a4 /remote/modules
parentAdd path and shell just to be safe (diff)
downloadtm-scripts-71a5b964f50e58216975cc2fd43895201cf0102b.tar.gz
tm-scripts-71a5b964f50e58216975cc2fd43895201cf0102b.tar.xz
tm-scripts-71a5b964f50e58216975cc2fd43895201cf0102b.zip
[smartctl] Add cronjob
Diffstat (limited to 'remote/modules')
-rw-r--r--remote/modules/smartctl/data/etc/cron.d/openslx-smartctl8
1 files changed, 8 insertions, 0 deletions
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
+