summaryrefslogtreecommitdiffstats
path: root/remote/modules/smartctl/data/etc/systemd
diff options
context:
space:
mode:
authorSimon Rettberg2013-12-20 00:45:35 +0100
committerSimon Rettberg2013-12-20 00:45:35 +0100
commit48f1e22f55118914fc0f045c12a2b1cdf103dff5 (patch)
tree1da12669d15bf2e44f60a50507c7150419729e58 /remote/modules/smartctl/data/etc/systemd
parent[pam-freiburg] Try harder to get machine ticket, continue mounting if there's... (diff)
downloadtm-scripts-48f1e22f55118914fc0f045c12a2b1cdf103dff5.tar.gz
tm-scripts-48f1e22f55118914fc0f045c12a2b1cdf103dff5.tar.xz
tm-scripts-48f1e22f55118914fc0f045c12a2b1cdf103dff5.zip
[smartctl] New module: smartctl - Will currently check reallocated sectors and spin retry count - could be extended, but those seem to be the best indicators according to $SEARCH_ENGINE
Diffstat (limited to 'remote/modules/smartctl/data/etc/systemd')
l---------remote/modules/smartctl/data/etc/systemd/system/basic.target.wants/smartctl.service1
-rw-r--r--remote/modules/smartctl/data/etc/systemd/system/smartctl.service8
2 files changed, 9 insertions, 0 deletions
diff --git a/remote/modules/smartctl/data/etc/systemd/system/basic.target.wants/smartctl.service b/remote/modules/smartctl/data/etc/systemd/system/basic.target.wants/smartctl.service
new file mode 120000
index 00000000..b0849c0c
--- /dev/null
+++ b/remote/modules/smartctl/data/etc/systemd/system/basic.target.wants/smartctl.service
@@ -0,0 +1 @@
+../smartctl.service \ No newline at end of file
diff --git a/remote/modules/smartctl/data/etc/systemd/system/smartctl.service b/remote/modules/smartctl/data/etc/systemd/system/smartctl.service
new file mode 100644
index 00000000..ab268cbc
--- /dev/null
+++ b/remote/modules/smartctl/data/etc/systemd/system/smartctl.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Check HDD health status
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/opt/openslx/scripts/systemd-smartctl
+