From 18ce659bb4b6de4f5f15065a0e2e2b5dc60a5ed9 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Fri, 25 Jul 2014 15:09:04 +0200 Subject: New service: smartd --- services/smartd/finish | 3 +++ services/smartd/run | 2 ++ services/smartd/supervise | 1 + 3 files changed, 6 insertions(+) create mode 100755 services/smartd/finish create mode 100755 services/smartd/run create mode 120000 services/smartd/supervise 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 -- cgit 1.4.1