The Slackware OS was successfully upgraded on Fri Oct 3 14:39:01 UTC 2014
The Wiki was successfully upgraded on Fri Oct 3 15:42:57 UTC 2014

Welcome to the Slackware Documentation Project

S.M.A.R.T.

S.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology) is …

Init script

#!/bin/sh
#
# /etc/rc.d/rc.smartd
#      This shell script takes care of starting and stopping
#      the smart daemon
 
SMARTD_OPTIONS="--logfacility=local3 --pidfile=/var/run/smartd.pid"
 
[ -x /usr/sbin/smartd ] || exit 0
 
[ -f /etc/smartd.conf ] || exit 0
 
start() {
      # Start daemons.
      echo -n "Starting smartd:  /usr/sbin/smartd $SMARTD_OPTIONS "
      /usr/sbin/smartd $SMARTD_OPTIONS
      echo
}
stop() {
      # Stop daemons.
      echo -n "Shutting down smartd: "
      killall -TERM smartd
      echo
}
status() {
  PIDS=$(pidof smartd)
  if [ "$PIDS" == "" ]; then
    echo "smartd is not running!"
  else
    echo "smartd is running at pid(s) ${PIDS}."
  fi
}
restart() {
      stop
      start
}
 
# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        stop
        start
        ;;
  status)
        status
        ;;
  *)
        echo "Usage: $0 {start|stop|status|restart}"
        ;;
esac
exit 0


QR Code
QR Code wiki:user:yenn:s.m.a.r.t (generated for current page)