diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2014-07-25 15:09:04 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2014-07-25 15:09:04 +0200 |
commit | 18ce659bb4b6de4f5f15065a0e2e2b5dc60a5ed9 (patch) | |
tree | 15e8bbaa671db596d289a27b9959457ad1267d31 /services/smartd | |
parent | 2e1dd11dbafabd3616482c973a75dedd8e0809d8 (diff) | |
download | runit-void-18ce659bb4b6de4f5f15065a0e2e2b5dc60a5ed9.tar.gz runit-void-18ce659bb4b6de4f5f15065a0e2e2b5dc60a5ed9.tar.xz runit-void-18ce659bb4b6de4f5f15065a0e2e2b5dc60a5ed9.zip |
New service: smartd
Diffstat (limited to 'services/smartd')
-rwxr-xr-x | services/smartd/finish | 3 | ||||
-rwxr-xr-x | services/smartd/run | 2 | ||||
l--------- | services/smartd/supervise | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/services/smartd/finish b/services/smartd/finish new file mode 100755 index 0000000..85e568f --- /dev/null +++ b/services/smartd/finish @@ -0,0 +1,3 @@ +#!/bin/sh +# no devices found, disable smartd +[ $1 = 17 ] && sv d $(dirname $0) diff --git a/services/smartd/run b/services/smartd/run new file mode 100755 index 0000000..1dc3cc9 --- /dev/null +++ b/services/smartd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec smartd -n diff --git a/services/smartd/supervise b/services/smartd/supervise new file mode 120000 index 0000000..381b7e4 --- /dev/null +++ b/services/smartd/supervise @@ -0,0 +1 @@ +/run/runit/supervise.smartd \ No newline at end of file |