diff options
| author | Simon Rettberg | 2014-01-08 17:04:37 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2014-01-08 17:04:37 +0100 |
| commit | 71a5b964f50e58216975cc2fd43895201cf0102b (patch) | |
| tree | 83134da7917874207c5154eaf697b4aff17263a4 /remote/modules/smartctl/data | |
| parent | Add path and shell just to be safe (diff) | |
| download | tm-scripts-71a5b964f50e58216975cc2fd43895201cf0102b.tar.gz tm-scripts-71a5b964f50e58216975cc2fd43895201cf0102b.tar.xz tm-scripts-71a5b964f50e58216975cc2fd43895201cf0102b.zip | |
[smartctl] Add cronjob
Diffstat (limited to 'remote/modules/smartctl/data')
| -rw-r--r-- | remote/modules/smartctl/data/etc/cron.d/openslx-smartctl | 8 |
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 + |
