summaryrefslogtreecommitdiff
path: root/smartmontools/smartd
diff options
context:
space:
mode:
authorSimon Gloßner <viper@hometux.de>2006-04-10 12:43:50 +0000
committerSimon Gloßner <viper@hometux.de>2006-04-10 12:43:50 +0000
commit09a853e0569b708592e7313f33dcc217a6345383 (patch)
tree9987ba3e6837fc9e39bec8b53632b407303556f4 /smartmontools/smartd
parent1830c51bf490b9ce9b4b87248dc926c1f950ef8b (diff)
downloadopt-09a853e0569b708592e7313f33dcc217a6345383.tar.gz
opt-09a853e0569b708592e7313f33dcc217a6345383.tar.xz
smartmontools: initial import
Diffstat (limited to 'smartmontools/smartd')
-rw-r--r--smartmontools/smartd26
1 files changed, 26 insertions, 0 deletions
diff --git a/smartmontools/smartd b/smartmontools/smartd
new file mode 100644
index 000000000..c7c1396fa
--- /dev/null
+++ b/smartmontools/smartd
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# /etc/rc.d/smartd: start/stop smartd daemon
+#
+
+case $1 in
+start)
+ /usr/sbin/smartd -p /var/run/smartd.pid
+ ;;
+stop)
+ killall -q /usr/sbin/smartd
+ ;;
+restart)
+ $0 stop
+ sleep 2
+ $0 start
+ ;;
+reload)
+ kill -HUP `pidof smartd`
+ ;;
+*)
+ echo "usage: $0 [start|stop|restart|reload]"
+ ;;
+esac
+
+# End of file

Generated by cgit