summaryrefslogtreecommitdiff
path: root/smartmontools/smartd
blob: c7c1396fafe4f24cf811762f8c88b679245339c2 (plain)
    1 #!/bin/sh
    2 #
    3 # /etc/rc.d/smartd: start/stop smartd daemon
    4 #
    5 
    6 case $1 in
    7 start)
    8 	/usr/sbin/smartd -p /var/run/smartd.pid
    9 	;;
   10 stop)
   11 	killall -q /usr/sbin/smartd
   12 	;;
   13 restart)
   14 	$0 stop
   15 	sleep 2
   16 	$0 start
   17 	;;
   18 reload)
   19 	kill -HUP `pidof smartd`
   20 	;;
   21 *)
   22 	echo "usage: $0 [start|stop|restart|reload]"
   23 	;;
   24 esac
   25 
   26 # End of file

Generated by cgit