[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
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