1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash export TERM=linux . /etc/rc.conf . /etc/rc.d/functions stat_runit "Starting smartd" /usr/sbin/smartd -n -c /etc/smartd.conf -q never &>/dev/null if [ $? -ne 0 ] then stat_fail else add_daemon smartd stat_done fi