The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (SMART) built into most modern ATA and SCSI hard disks. In many cases, these utilities will provide advanced warning of disk degradation and failure.
17 lines
334 B
Bash
Executable file
17 lines
334 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# $NetBSD: smartd,v 1.1.1.1 2003/12/25 23:03:54 shattered Exp $
|
|
#
|
|
# PROVIDE: smartd
|
|
# REQUIRE: DAEMON
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="smartd"
|
|
rcvar=$name
|
|
command="/usr/pkg/sbin/${name}"
|
|
pidfile="/var/run/${name}.pid"
|
|
smartd_flags="-p $pidfile"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|