summaryrefslogtreecommitdiff
path: root/smartmontools/smartd
diff options
context:
space:
mode:
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