elif [ -f /etc/trustix-release ] ; then
   
# Source function library
    . /etc/init.d/functions
   
# Source configuration file.  This should define the shell variable smartd_opts
    [ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools
 
    RETVAL=0
  
    prog=smartd
 
    case "$1" in
        start)
            echo -n $"Starting $prog: "
            daemon $SMARTD_BIN $smartd_opts
            touch /var/lock/subsys/smartd
            echo
            ;;
        stop)
            echo -n $"Shutting down $prog: "
            killproc $SMARTD_BIN
            rm -f /var/lock/subsys/smartd
            echo
            ;;
        reload)
            echo -n $"Reloading $prog daemon configuration: "
            killproc $SMARTD_BIN -HUP
            RETVAL=$?
            echo
            ;;
        report)
            echo -n $"Checking SMART devices now: "
            killproc $SMARTD_BIN -USR1
            RETVAL=$?
            echo
            ;;
        restart)
            $0 stop
            $0 start
            ;;
        status)
            status $prog
            ;;
        *)
            echo $"Usage: $0 {start|stop|reload|report|restart|status}"
            RETVAL=1
    esac
 
    exit $RETVAL