diff options
author | Simon Gloßner <viper@hometux.de> | 2006-04-10 12:43:50 +0000 |
---|---|---|
committer | Simon Gloßner <viper@hometux.de> | 2006-04-10 12:43:50 +0000 |
commit | 09a853e0569b708592e7313f33dcc217a6345383 (patch) | |
tree | 9987ba3e6837fc9e39bec8b53632b407303556f4 /smartmontools/smartd | |
parent | 1830c51bf490b9ce9b4b87248dc926c1f950ef8b (diff) | |
download | opt-09a853e0569b708592e7313f33dcc217a6345383.tar.gz opt-09a853e0569b708592e7313f33dcc217a6345383.tar.xz |
smartmontools: initial import
Diffstat (limited to 'smartmontools/smartd')
-rw-r--r-- | smartmontools/smartd | 26 |
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 |