summaryrefslogtreecommitdiffstats
path: root/remote/modules/smartctl/data/etc/systemd/system
diff options
context:
space:
mode:
authorJonathan Bauer2013-12-20 17:47:01 +0100
committerJonathan Bauer2013-12-20 17:47:01 +0100
commit808559e1cad1747825984174248f4fdf5803ae8e (patch)
tree6a69f5c4cfffcf9400a15f684d9658c67aaba9ff /remote/modules/smartctl/data/etc/systemd/system
parent[rootfs-stage32] added 'getent' to stage32 (diff)
parentMerge branch 'master' of dnbd3:openslx-ng/tm-scripts (diff)
downloadtm-scripts-808559e1cad1747825984174248f4fdf5803ae8e.tar.gz
tm-scripts-808559e1cad1747825984174248f4fdf5803ae8e.tar.xz
tm-scripts-808559e1cad1747825984174248f4fdf5803ae8e.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/smartctl/data/etc/systemd/system')
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
+